Skip to content

Commit

Permalink
feat: set WINE_ARCH with win32 default
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Nov 7, 2024
1 parent ed380af commit 9a8081c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/state/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ impl Options {
}

pub fn vars(&self) -> HashMap<&str, String> {
let wine_arch = match self.wine_prefix.contains("64") {
true => "win64",
false => "win32"
};

HashMap::from([
("WINEPREFIX", self.wine_prefix.to_string()),
("WAYLAND_DISPLAY", self.wayland_display.to_string()),
Expand All @@ -36,6 +41,7 @@ impl Options {
("XAUTHORITY", "/tmp/.X11-unix/Xauthority".to_string()),
("LC_ALL", self.locale.to_string()),
("TZ", self.timezone.to_string()),
("WINE_ARCH", wine_arch.to_string()),
])
}
}
Expand Down

0 comments on commit 9a8081c

Please sign in to comment.