File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ const config: ForgeConfig = {
108108 "--share=network" ,
109109 // System notifications with libnotify
110110 "--talk-name=org.freedesktop.Notifications" ,
111+ // System tray
112+ "--talk-name=org.kde.StatusNotifierWatcher"
111113 ] ,
112114 modules : [
113115 {
Original file line number Diff line number Diff line change 1616 "build" : " tsx scripts/build.ts" ,
1717 "start-prod" : " pnpm build && cross-env TRILIUM_DATA_DIR=data TRILIUM_PORT=37841 ELECTRON_IS_DEV=0 electron dist" ,
1818 "electron-forge:make" : " pnpm build && electron-forge make dist" ,
19- "electron-forge:make-flatpak" : " pnpm build && electron-forge make dist --targets=@electron-forge/maker-flatpak" ,
19+ "electron-forge:make-flatpak" : " pnpm build && DEBUG=* electron-forge make dist --targets=@electron-forge/maker-flatpak" ,
2020 "electron-forge:package" : " pnpm build && electron-forge package dist" ,
2121 "electron-forge:start" : " pnpm build && electron-forge start dist" ,
2222 "e2e" : " pnpm build && cross-env TRILIUM_INTEGRATION_TEST=memory-no-store TRILIUM_PORT=8082 TRILIUM_DATA_DIR=data-e2e ELECTRON_IS_DEV=0 playwright test"
Original file line number Diff line number Diff line change @@ -39,11 +39,16 @@ async function main() {
3939 app . commandLine . appendSwitch ( "disable-smooth-scrolling" ) ;
4040 }
4141
42- // Electron 36 crashes with "Using GTK 2/3 and GTK 4 in the same process is not supported" on some distributions.
43- // See https://github.com/electron/electron/issues/46538 for more info.
4442 if ( process . platform === "linux" ) {
4543 app . setName ( PRODUCT_NAME ) ;
44+
45+ // Electron 36 crashes with "Using GTK 2/3 and GTK 4 in the same process is not supported" on some distributions.
46+ // See https://github.com/electron/electron/issues/46538 for more info.
4647 app . commandLine . appendSwitch ( "gtk-version" , "3" ) ;
48+
49+ // Enable global shortcuts in Flatpak
50+ // the app runs in a Wayland session.
51+ app . commandLine . appendSwitch ( "enable-features" , "GlobalShortcutsPortal" ) ;
4752 }
4853
4954 // Quit when all windows are closed, except on macOS. There, it's common
You can’t perform that action at this time.
0 commit comments