mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
Use separate user data dir for AppImage builds
This commit is contained in:
@@ -8,6 +8,7 @@ import { app } from 'electron';
|
|||||||
import { start } from './base_config.node.js';
|
import { start } from './base_config.node.js';
|
||||||
import config from './config.main.js';
|
import config from './config.main.js';
|
||||||
import * as Errors from '../ts/types/errors.std.js';
|
import * as Errors from '../ts/types/errors.std.js';
|
||||||
|
import OS from '../ts/util/os/osMain.node.js';
|
||||||
|
|
||||||
let userData: string | undefined;
|
let userData: string | undefined;
|
||||||
// Use separate data directory for benchmarks & development
|
// Use separate data directory for benchmarks & development
|
||||||
@@ -18,6 +19,8 @@ if (config.has('storagePath')) {
|
|||||||
app.getPath('appData'),
|
app.getPath('appData'),
|
||||||
`Signal-${config.get('storageProfile')}`
|
`Signal-${config.get('storageProfile')}`
|
||||||
);
|
);
|
||||||
|
} else if (OS.isAppImage()) {
|
||||||
|
userData = join(app.getPath('appData'), `${app.getName()} AppImage`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData !== undefined) {
|
if (userData !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user