From 600bc953be120220b88b58f4dcf72fbe048ac63b Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 13 Feb 2022 19:13:29 +0000 Subject: [PATCH] [AutoStart > Linux] Fix for system electron --- src/autoStart/linux.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/autoStart/linux.js b/src/autoStart/linux.js index b4abdbd..9794fe0 100644 --- a/src/autoStart/linux.js +++ b/src/autoStart/linux.js @@ -8,8 +8,7 @@ const buildInfo = require('../utils/buildInfo'); const desktopPath = join(app.getPath('appData'), 'autostart', app.name + '-' + buildInfo.releaseChannel + '.desktop'); // Vars for use in desktop file content template -const exePath = global.systemElectron ? '/usr/share/pixmaps/Discord' : app.getPath('exe'); -const iconPath = join(dirname(exePath), 'discord.png'); +const exePath = app.getPath('exe'); // Template for desktop file const desktopContent = `[Desktop Entry] @@ -18,7 +17,7 @@ Exec=${exePath} Hidden=false NoDisplay=false Name=${basename(process.execPath, '.exe')} -Icon=${iconPath} +Icon=${join(global.systemElectron ? '/usr/share/pixmaps/Discord' : dirname(exePath), 'discord.png')} Comment=Text and voice chat for gamers. X-GNOME-Autostart-enabled=true`;