Skip to content

Commit 48608ad

Browse files
committed
Merge branch 'hotfix' of https://github.com/TriliumNext/Trilium into hotfix
2 parents 362ecba + e8dc19a commit 48608ad

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

apps/desktop/electron-forge/forge.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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"

apps/desktop/src/main.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)