Changes of Linux development v0.0.73
This commit is contained in:
parent
b8136fffe5
commit
ed9709ed62
2 changed files with 4 additions and 3 deletions
|
@ -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}
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue