Skip to content

Build your personal knowledge base with Trilium Notes

fix(flatpak): show the tray icon on GNOME

Elian Doran40bb48f98be1
diff --git a/apps/desktop/flatpak/trilium.sh b/apps/desktop/flatpak/trilium.sh
index 4ef7d255ea..dc5a0aff62 100755
--- a/apps/desktop/flatpak/trilium.sh
+++ b/apps/desktop/flatpak/trilium.sh
@@ -9,4 +9,8 @@ if [ -z "${TRILIUM_DATA_DIR:-}" ]; then
fi
fi
+# Chromium hands GNOME's tray its icon as a file in TMPDIR; the sandbox's /tmp is private,
+# while this directory has the same path on the host.
+export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
+
exec zypak-wrapper /app/lib/electron/trilium /app/lib/trilium "$@"