Browse Source

Do not start nm-applet at all when no NetworkManager running (#857)

Marek Marczykowski-Górecki 10 years ago
parent
commit
44aaa81042
1 changed files with 7 additions and 0 deletions
  1. 7 0
      vm-systemd/misc-post.sh

+ 7 - 0
vm-systemd/misc-post.sh

@@ -59,5 +59,12 @@ if [ ! -f /etc/systemd/system/cups.service ]; then
         sed -i -e '/QUBES/!s/^NotShowIn=.*/\1QUBES;/' /etc/xdg/autostart/print-applet.desktop
     fi
 fi
+if [ -f /var/run/qubes-service/network-manager ]; then
+    # Allow also notification icon
+    sed -i -e '/QUBES/!s/^OnlyShowIn=.*/\0QUBES;/' /etc/xdg/autostart/nm-applet.desktop
+else
+    # Disable notification icon
+    sed -i -e '/^OnlyShowIn=.*/s/QUBES;//' /etc/xdg/autostart/nm-applet.desktop
+fi
 
 exit 0