core-agent-linux/network/show-hide-nm-applet.sh

12 lines
320 B
Bash
Raw Normal View History

#!/bin/sh
command -v nm-applet > /dev/null 2>&1 || exit 0
2014-05-21 20:21:15 +02:00
# Source Qubes library.
# shellcheck source=init/functions
. /usr/lib/qubes/init/functions
# Hide nm-applet when network-manager is disabled
qsvc network-manager && nm_enabled=true || nm_enabled=false
gsettings set org.gnome.nm-applet show-applet $nm_enabled