Skip to content

fix(settings): read launch arguments without panicking on non-UTF-8 - #912

Merged
thep0y merged 1 commit into
mainfrom
fix/settings-argv-non-utf8
Nov 26, 2026
Merged

thep0y merged 1 commit into
mainfrom
fix/settings-argv-non-utf8

Conversation

@thep0y

@thep0y thep0y commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

env::args() panics on an argument that is not valid Unicode, and setup_app runs before the window exists in a GUI-subsystem process where the panic would be invisible. The arguments are now collected with args_os() and resolved from OsStr, so an unusual launch path still opens the window.

env::args() panics on an argument that is not valid Unicode, and setup_app runs before the window exists in a GUI-subsystem process where the panic would be invisible. The arguments are now collected with args_os() and resolved from OsStr, so an unusual launch path still opens the window.
@thep0y thep0y added fix rust Pull requests that update rust code labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 817b42fb-eac4-4651-a59b-560e8fa7ead6
Commits

Reviewing files that changed from the base of the PR and between a0f3da2 and 950b7da.

Files selected for processing: 1

  • crates/dwall-settings/src/setup.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thep0y
thep0y merged commit b524505 into main Nov 26, 2026
10 checks passed
@github-actions
github-actions Bot deleted the fix/settings-argv-non-utf8 branch November 26, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant