Fix Linux tray icon

This commit is contained in:
Natsumi
2025-10-09 05:51:40 +13:00
parent 1d1886cc77
commit c1ce4d9557
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -79,7 +79,7 @@
"build/html/**/*", "build/html/**/*",
"src-electron/*", "src-electron/*",
"images/VRCX.png", "images/VRCX.png",
"images/tray.png", "images/VRCX.ico",
"Version", "Version",
"src-electron/libs/linux/libopenvr_api.so" "src-electron/libs/linux/libopenvr_api.so"
], ],
+5
View File
@@ -535,6 +535,11 @@ function createTray() {
path.join(rootDir, 'images/VRCX.ico') path.join(rootDir, 'images/VRCX.ico')
); );
tray = new Tray(image.resize({ width: 16, height: 16 })); tray = new Tray(image.resize({ width: 16, height: 16 }));
} else if (process.platform === 'linux') {
const image = nativeImage.createFromPath(
path.join(rootDir, 'images/VRCX.ico')
);
tray = new Tray(image.resize({ width: 64, height: 64 }));
} else { } else {
tray = new Tray(path.join(rootDir, 'images/VRCX.ico')); tray = new Tray(path.join(rootDir, 'images/VRCX.ico'));
} }