Skip to content

Commit

Permalink
Unset ARGV0 to fix AppImage launch
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Jul 9, 2024
1 parent af5924e commit 8d2da76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ fn main() -> NeovideExitCode {
windows_fix_dpi();
}

// This variable is set by the AppImage runtime and causes probles for child processes
#[cfg(target_os = "linux")]
env::remove_var("ARGV0");

let event_loop = create_event_loop();
clipboard::init(&event_loop);

Expand Down

0 comments on commit 8d2da76

Please sign in to comment.