core-agent-linux/network/show-hide-nm-applet.sh
Marek Marczykowski-Górecki 4d300ff137 Fix bashism
Debian has dash as default shell.
2014-07-26 03:58:21 +02:00

9 lines
244 B
Bash

#!/bin/sh
type nm-applet > /dev/null 2>&1 || exit 0
# Hide nm-applet when network-manager is disabled
nm_enabled=false
[ -f /var/run/qubes-service/network-manager ] && nm_enabled=true
gsettings set org.gnome.nm-applet show-applet $nm_enabled