fix(panel): suppress the nm-applet tray icon like the other replaced applets

network-manager-gnome autostarts its own systray icon from /etc/xdg/autostart,
which duplicates the network genmon (plugin-13) already in the panel. Override
it with a Hidden=true user-level .desktop, the same way blueman-applet and
nm-tray are already handled, and copy it into place from the panel installer.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
janvanwan
2026-08-18 14:39:30 -05:00
co-authored by Claude Opus 5
parent f46e53de15
commit 4bfa979ee8
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -26,6 +26,9 @@ ln -sf "$NEXUS/management/autostart/nexus-popup.desktop" \
"$AUTOSTART/nexus-popup.desktop" "$AUTOSTART/nexus-popup.desktop"
cp -f "$NEXUS/management/autostart/nm-tray.desktop" "$AUTOSTART/nm-tray.desktop" cp -f "$NEXUS/management/autostart/nm-tray.desktop" "$AUTOSTART/nm-tray.desktop"
cp -f "$NEXUS/management/autostart/nm-tray-autostart.desktop" "$AUTOSTART/nm-tray-autostart.desktop" cp -f "$NEXUS/management/autostart/nm-tray-autostart.desktop" "$AUTOSTART/nm-tray-autostart.desktop"
# Same for nm-applet (network-manager-gnome), which ships its own systray icon
# from /etc/xdg/autostart — the network genmon (plugin-13) replaces it.
cp -f "$NEXUS/management/autostart/nm-applet.desktop" "$AUTOSTART/nm-applet.desktop"
# Suppress blueman-applet autostart (both the system blueman.desktop and the # Suppress blueman-applet autostart (both the system blueman.desktop and the
# user blueman-applet.desktop). blueman always forces its own tray icon, which # user blueman-applet.desktop). blueman always forces its own tray icon, which
# the panel renders too small; the Bluetooth genmon (plugin-16) replaces it and # the panel renders too small; the Bluetooth genmon (plugin-16) replaces it and
+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Network
Comment=Manage your network connections
Icon=nm-device-wireless
TryExec=nm-applet
Exec=nm-applet
Hidden=true
X-XFCE-Autostart-Override=true