Skip to content

Commit 842d6eb

Browse files
committed
Locate icons theme path in AppImage
Needed for icons to work on Mate DE
1 parent 3821dcd commit 842d6eb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/org/cryptomator/linux/tray/AppindicatorTrayMenuController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ public void showTrayIcon(Consumer<TrayIconLoader> iconLoader, Runnable runnable,
4646

4747
private void showTrayIconWithSVG(String s) {
4848
try (var arena = Arena.openConfined()) {
49-
indicator = app_indicator_new(arena.allocateUtf8String(APP_INDICATOR_ID),
49+
indicator = app_indicator_new_with_path(arena.allocateUtf8String(APP_INDICATOR_ID),
5050
arena.allocateUtf8String(s),
51-
APP_INDICATOR_CATEGORY_APPLICATION_STATUS());
51+
APP_INDICATOR_CATEGORY_APPLICATION_STATUS(),
52+
// find tray icons theme in mounted AppImage
53+
arena.allocateUtf8String(System.getenv("APPDIR") + "/usr/share/icons/hicolor/symbolic/apps"));
5254
}
5355
}
5456

0 commit comments

Comments
 (0)