fix(linux): initialize key service in packaged builds

This commit is contained in:
TMYTiMidlY
2026-05-17 14:11:55 +08:00
parent ca6c479496
commit 7eeec7d930
2 changed files with 2 additions and 8 deletions

View File

@@ -397,13 +397,7 @@ let keyService: any
if (process.platform === 'darwin') {
keyService = new KeyServiceMac()
} else if (process.platform === 'linux') {
// const { KeyServiceLinux } = require('./services/keyServiceLinux')
// keyService = new KeyServiceLinux()
import('./services/keyServiceLinux').then(({ KeyServiceLinux }) => {
keyService = new KeyServiceLinux();
});
keyService = new KeyServiceLinux()
} else {
keyService = new KeyService()
}