Find tray icons in mounted AppImage

This commit is contained in:
Ralph Plawetzki
2023-05-27 16:39:24 +02:00
parent 1093cb618f
commit ec03bc569c

View File

@@ -186,7 +186,7 @@ public class TrayMenuBuilder {
private String getAppropriateFreedesktopIconName() {
boolean isAnyVaultUnlocked = vaults.stream().anyMatch(Vault::isUnlocked);
return isAnyVaultUnlocked ? "org.cryptomator.Cryptomator.tray-unlocked" : "org.cryptomator.Cryptomator.tray";
// find tray icons in mounted AppImage
return isAnyVaultUnlocked ? System.getenv("APPDIR") + "/usr/share/icons/hicolor/symbolic/apps/org.cryptomator.Cryptomator.tray-unlocked.svg" : System.getenv("APPDIR") + "/usr/share/icons/hicolor/symbolic/apps/org.cryptomator.Cryptomator.tray.svg";
}
}