You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/distribute/flatpak.mdx
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,8 @@ finish-args:
75
75
- --socket=fallback-x11 # Permission needed to show the window
76
76
- --device=dri # OpenGL, not necessary for all projects
77
77
- --share=ipc
78
+
- --talk-name=org.kde.StatusNotifierWatcher # Optional: needed only if your app uses the tray icon
79
+
- --filesystem=xdg-run/tray-icon:create # Optional: needed only if your app uses the tray icon - see an alternative way below
78
80
79
81
modules:
80
82
- name: binary
@@ -99,6 +101,19 @@ modules:
99
101
100
102
The Gnome 46 runtime includes all dependencies of the standard Tauri app with their correct versions.
101
103
104
+
:::note[Using tray-icon without changing the Flatpak manifest]
105
+
If you prefer not opening access from your app to $XDG_RUNTIME_DIR (where tray-icon is saved on linux), you can change the path tauri saves the tray image:
106
+
107
+
```rust
108
+
TrayIconBuilder::new()
109
+
.icon(app.default_window_icon().unwrap().clone())
110
+
.temp_dir_path(app.path().app_cache_dir().unwrap()) // will save to the cache folder ($XDG_CACHE_HOME) where the app already has permission
0 commit comments