1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
Description: Show tray icon
Use a gsettings schema to decide whether to show
the network manager icon in the tray. If enabled
the budgie-desktop-nm-applet will autostart and
thus show in the tray
Author: David Mohammed <fossfreedom@ubuntu.com>
Forwarded: not-needed
Last-Update: 2022-01-29
--- /dev/null
+++ b/src/panel/applets/tray/com.solus-project.tray-nm.gschema.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="budgie">
+ <schema path="/com/solus-project/tray/" id="com.solus-project.tray2">
+
+ <key type="b" name="show-nm-trayicon">
+ <default>true</default>
+ </key>
+
+ </schema>
+
+</schemalist>
\ No newline at end of file
--- a/src/panel/applets/tray/meson.build
+++ b/src/panel/applets/tray/meson.build
@@ -48,3 +48,8 @@
'com.solus-project.tray.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
)
+
+install_data(
+ 'com.solus-project.tray-nm.gschema.xml',
+ install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
+)
--- a/src/session/budgie-desktop-nm-applet.desktop.in
+++ b/src/session/budgie-desktop-nm-applet.desktop.in
@@ -12,3 +12,4 @@
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=nm-applet
X-GNOME-UsesNotifications=true
+AutostartCondition=GSettings com.solus-project.tray2 show-nm-trayicon
|