mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Linux: Fix missing icon error
This commit is contained in:
@@ -184,16 +184,20 @@ ipcMain.handle('app:restart', () => {
|
||||
|
||||
ipcMain.handle('app:getWristOverlayWindow', () => {
|
||||
if (wristOverlayWindow && wristOverlayWindow.webContents) {
|
||||
return !wristOverlayWindow.webContents.isLoading() &&
|
||||
wristOverlayWindow.webContents.isPainting();
|
||||
return (
|
||||
!wristOverlayWindow.webContents.isLoading() &&
|
||||
wristOverlayWindow.webContents.isPainting()
|
||||
);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
ipcMain.handle('app:getHmdOverlayWindow', () => {
|
||||
if (hmdOverlayWindow && hmdOverlayWindow.webContents) {
|
||||
return !hmdOverlayWindow.webContents.isLoading() &&
|
||||
hmdOverlayWindow.webContents.isPainting();
|
||||
return (
|
||||
!hmdOverlayWindow.webContents.isLoading() &&
|
||||
hmdOverlayWindow.webContents.isPainting()
|
||||
);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
@@ -611,6 +615,10 @@ async function createDesktopFile() {
|
||||
// Download the icon and save it to the target directory
|
||||
const iconPath = path.join(homePath, '.local/share/icons/VRCX.png');
|
||||
if (!fs.existsSync(iconPath)) {
|
||||
const iconDir = path.dirname(iconPath);
|
||||
if (!fs.existsSync(iconDir)) {
|
||||
fs.mkdirSync(iconDir, { recursive: true });
|
||||
}
|
||||
const iconUrl =
|
||||
'https://raw.githubusercontent.com/vrcx-team/VRCX/master/VRCX.png';
|
||||
await downloadIcon(iconUrl, iconPath)
|
||||
|
||||
Reference in New Issue
Block a user