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

This commit is contained in:
Marek Marczykowski-Górecki 2014-05-30 22:44:50 +02:00
parent 25612afc80
commit 44aaa81042

View File

@ -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