Hide nm-applet when NetworkManager is disabled (retry)
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
This commit is contained in:
parent
7d4c19fe23
commit
d660f260b8
3
Makefile
3
Makefile
@ -110,6 +110,9 @@ install-vm:
|
||||
install -m 0644 -D network/tinyproxy-qubes-yum.conf $(DESTDIR)/etc/tinyproxy/tinyproxy-qubes-yum.conf
|
||||
install -m 0644 -D network/filter-qubes-yum $(DESTDIR)/etc/tinyproxy/filter-qubes-yum
|
||||
install -m 0755 -D network/iptables-yum-proxy $(DESTDIR)/usr/lib/qubes/iptables-yum-proxy
|
||||
install -d $(DESTDIR)/etc/xdg/autostart
|
||||
install -m 0755 network/show-hide-nm-applet.sh $(DESTDIR)/usr/lib/qubes/show-hide-nm-applet.sh
|
||||
install -m 0644 network/show-hide-nm-applet.desktop $(DESTDIR)/etc/xdg/autostart/qubes-show-hide-nm-applet.desktop
|
||||
|
||||
install -d $(DESTDIR)/etc/yum.conf.d
|
||||
touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf
|
||||
|
8
network/show-hide-nm-applet.desktop
Normal file
8
network/show-hide-nm-applet.desktop
Normal file
@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name=Hide/Show nm-applet depending on NetworkManager state
|
||||
Exec=/usr/lib/qubes/show-hide-nm-applet.sh
|
||||
Terminal=false
|
||||
Type=Application
|
||||
OnlyShowIn=QUBES;
|
6
network/show-hide-nm-applet.sh
Normal file
6
network/show-hide-nm-applet.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# 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
|
@ -308,6 +308,7 @@ rm -f %{name}-%{version}
|
||||
%config(noreplace) /etc/tinyproxy/tinyproxy-qubes-yum.conf
|
||||
/etc/udev/rules.d/50-qubes-misc.rules
|
||||
/etc/udev/rules.d/99-qubes-network.rules
|
||||
/etc/xdg/autostart/qubes-show-hide-nm-applet.desktop
|
||||
/etc/xdg/nautilus-actions/nautilus-actions.conf
|
||||
/etc/xen/scripts/vif-route-qubes
|
||||
%config(noreplace) /etc/yum.conf.d/qubes-proxy.conf
|
||||
@ -328,6 +329,7 @@ rm -f %{name}-%{version}
|
||||
/usr/lib/qubes/sync-ntp-clock
|
||||
/usr/lib/qubes/prepare-suspend
|
||||
/usr/lib/qubes/network-manager-prepare-conf-dir
|
||||
/usr/lib/qubes/show-hide-nm-applet.sh
|
||||
/usr/lib/qubes/qrexec-agent
|
||||
/usr/lib/qubes/qrexec-client-vm
|
||||
/usr/lib/qubes/qrexec_client_vm
|
||||
|
Loading…
Reference in New Issue
Block a user