Skip to content

Commit

Permalink
Fix wrong L&F on Ubuntu
Browse files Browse the repository at this point in the history
Closes qzind#716
  • Loading branch information
tresf committed Sep 24, 2020
1 parent d2e18ce commit 52ecaba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/qz/installer/LinuxInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ public void spawn(List<String> args) throws Exception {
HashMap<String, String> tempEnv = new HashMap<>();
ArrayList<String> toExport = new ArrayList<>(Arrays.asList(SUDO_EXPORTS));
for(String pid : pids) {
if(pid.isEmpty()) {
continue;
}
try {
String[] vars;
if(SystemUtilities.isSolaris()) {
Expand Down Expand Up @@ -226,6 +229,13 @@ public void spawn(List<String> args) throws Exception {
} else {
log.debug("Expected USER={} but got USER={}, skipping results for {}", whoami, tempEnv.get("USER"), pid);
}

// Use gtk theme
if(env.containsKey("XDG_CURRENT_DESKTOP") && !env.containsKey("GNOME_DESKTOP_SESSION_ID")) {
if(env.get("XDG_CURRENT_DESKTOP").toLowerCase().contains("gnome")) {
env.put("GNOME_DESKTOP_SESSION_ID", "this-is-deprecated");
}
}
}

if(env.size() == 0) {
Expand Down

0 comments on commit 52ecaba

Please sign in to comment.