From 85694a87d27e432e33e6ea665a12cc57e78da4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 30 Jan 2014 02:41:58 +0100 Subject: [PATCH] Hide nm-applet when NetworkManager is disabled It isn't done automatically by nm-applet itself since nm-applet 0.9.9.0 (fc19+), this one commit: https://git.gnome.org/browse/network-manager-applet/commit?id=276a702000ee9e509321891f5ffa9789acfb053c At the same time they've introduced option to manually hide the icon: https://git.gnome.org/browse/network-manager-applet/commit?id=e7331a3f33ab422ea6c1bbc015ad44d8d9c83bc3 --- vm-systemd/misc-post.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index e0c2909..35b0505 100755 --- a/vm-systemd/misc-post.sh +++ b/vm-systemd/misc-post.sh @@ -48,6 +48,11 @@ fi # Start services which haven't own proper systemd unit: +# Hide nm-applet when network-manager is disabled +nm_enabled=false +[ -f /var/run/qubes-service/network-manager ] && nm_enabled=true +su -c "gsettings set org.gnome.nm-applet show-applet $nm_enabled" user 2> /dev/null + # Start AppVM specific services if [ ! -f /etc/systemd/system/cups.service ]; then if [ -f /var/run/qubes-service/cups ]; then