diff --git a/appasar/development/app_bootstrap/autoStart/linux.js b/appasar/development/app_bootstrap/autoStart/linux.js index 4097e7f..e1895f1 100644 --- a/appasar/development/app_bootstrap/autoStart/linux.js +++ b/appasar/development/app_bootstrap/autoStart/linux.js @@ -31,7 +31,8 @@ const exePath = _electron.app.getPath('exe'); const exeDir = _path2.default.dirname(exePath); const iconPath = _path2.default.join(exeDir, 'discord.png'); const autostartDir = _path2.default.join(_electron.app.getPath('appData'), 'autostart'); -const autostartFileName = _path2.default.join(autostartDir, _electron.app.getName() + '-' + _buildInfo2.default.releaseChannel + '.desktop'); +const electronAppName = _electron.app.name ? _electron.app.name : _electron.app.getName(); +const autostartFileName = _path2.default.join(autostartDir, electronAppName + '-' + _buildInfo2.default.releaseChannel + '.desktop'); const desktopFile = `[Desktop Entry] Type=Application Exec=${exePath} diff --git a/appasar/development/app_bootstrap/singleInstance.js b/appasar/development/app_bootstrap/singleInstance.js index a7d305c..03cf578 100644 --- a/appasar/development/app_bootstrap/singleInstance.js +++ b/appasar/development/app_bootstrap/singleInstance.js @@ -90,9 +90,9 @@ function tryStart(socketPath, callback, otherAppFound) { } function makeSocketPath() { - let name = _electron.app.getName(); + let name = _electron.app.name ? _electron.app.name : _electron.app.getName(); if (_buildInfo2.default.releaseChannel !== 'stable') { - name = _electron.app.getName() + _buildInfo2.default.releaseChannel; + name += _buildInfo2.default.releaseChannel; } if (process.platform === 'win32') {