Skip to content

Build your personal knowledge base with Trilium Notes

fix(forge): missing flatpak permissions (closes #7454)

Elian Doran93f145a20fd7
diff --git a/apps/desktop/electron-forge/forge.config.ts b/apps/desktop/electron-forge/forge.config.ts
index 0b78b3e1f8..0c0531c8e1 100644
--- a/apps/desktop/electron-forge/forge.config.ts
+++ b/apps/desktop/electron-forge/forge.config.ts
@@ -70,7 +70,6 @@ const config: ForgeConfig = {
]
},
rebuildConfig: {
- force: true,
extraModules: [ "better-sqlite3" ]
},
makers: [
@@ -91,8 +90,20 @@ const config: ForgeConfig = {
baseVersion: "24.08",
baseFlatpakref: "https://flathub.org/repo/flathub.flatpakrepo",
finishArgs: [
+ // Wayland/X11 Rendering
"--socket=fallback-x11",
- "--socket=wayland"
+ "--socket=wayland",
+ "--share=ipc",
+ // Open GL
+ "--device=dri",
+ // Audio output
+ "--socket=pulseaudio",
+ // Read/write home directory access
+ "--filesystem=home",
+ // Allow communication with network
+ "--share=network",
+ // System notifications with libnotify
+ "--talk-name=org.freedesktop.Notifications",
],
modules: [
{