Changes of Linux canary v0.0.99
This commit is contained in:
parent
ed9709ed62
commit
e00f63773c
|
@ -31,7 +31,8 @@ const exePath = _electron.app.getPath('exe');
|
||||||
const exeDir = _path2.default.dirname(exePath);
|
const exeDir = _path2.default.dirname(exePath);
|
||||||
const iconPath = _path2.default.join(exeDir, 'discord.png');
|
const iconPath = _path2.default.join(exeDir, 'discord.png');
|
||||||
const autostartDir = _path2.default.join(_electron.app.getPath('appData'), 'autostart');
|
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]
|
const desktopFile = `[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Exec=${exePath}
|
Exec=${exePath}
|
||||||
|
|
|
@ -90,9 +90,9 @@ function tryStart(socketPath, callback, otherAppFound) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeSocketPath() {
|
function makeSocketPath() {
|
||||||
let name = _electron.app.getName();
|
let name = _electron.app.name ? _electron.app.name : _electron.app.getName();
|
||||||
if (_buildInfo2.default.releaseChannel !== 'stable') {
|
if (_buildInfo2.default.releaseChannel !== 'stable') {
|
||||||
name = _electron.app.getName() + _buildInfo2.default.releaseChannel;
|
name += _buildInfo2.default.releaseChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
|
Loading…
Reference in New Issue