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