From 44aaa810428e8710869f52b60870ac4415768944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 30 May 2014 22:44:50 +0200 Subject: [PATCH] Do not start nm-applet at all when no NetworkManager running (#857) --- vm-systemd/misc-post.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index e0c2909..50e990d 100755 --- a/vm-systemd/misc-post.sh +++ b/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