Skip to content

Commit

Permalink
Prevent gsettings exception when running headless on Linux
Browse files Browse the repository at this point in the history
(fix2) Closes #1209
  • Loading branch information
tresf committed Nov 4, 2023
1 parent e9d97d6 commit 24a06c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qz/common/TrayManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public TrayManager(boolean isHeadless) {
iconCache.fixTrayIcons(darkTaskbarMode);
refreshIcon(null);
SwingUtilities.invokeLater(() -> {
SystemUtilities.setSystemLookAndFeel();
SystemUtilities.setSystemLookAndFeel(headless);
for(Component c : componentList) {
SwingUtilities.updateComponentTreeUI(c);
if (c instanceof Themeable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private boolean promptCertutil() {
return true;
}
try {
SystemUtilities.setSystemLookAndFeel();
SystemUtilities.setSystemLookAndFeel(true);
return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(null, "A critical component, \"certutil\" wasn't found. Attempt to fetch it now?");
} catch(Throwable ignore) {}
return true;
Expand Down

0 comments on commit 24a06c2

Please sign in to comment.