mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Remove use of __dirname from main process
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import { app } from 'electron';
|
||||
|
||||
import { strictAssert } from '../util/assert.std.js';
|
||||
import { explodePromise } from '../util/explodePromise.std.js';
|
||||
import { getAppRootDir } from '../util/appRootDir.main.js';
|
||||
import type { LoggerType } from '../types/Logging.std.js';
|
||||
import * as Errors from '../types/errors.std.js';
|
||||
import { SqliteErrorKind } from './errors.std.js';
|
||||
@@ -551,12 +552,7 @@ export class MainSQL {
|
||||
}
|
||||
|
||||
#createWorker(): CreateWorkerResultType {
|
||||
const scriptPath = join(
|
||||
app.getAppPath(),
|
||||
'ts',
|
||||
'sql',
|
||||
'mainWorker.node.js'
|
||||
);
|
||||
const scriptPath = join(getAppRootDir(), 'ts', 'sql', 'mainWorker.node.js');
|
||||
|
||||
const worker = new Worker(scriptPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user