答案1
提出的解决方案维基百科——这只是一个背诵。
简而言之,nm-applet 包无法删除,因为它是 cinnamon 的重要组成部分,但您可以通过创建自定义 cinnamon 配置来抑制加载它。
cp /etc/xdg/autostart/nm-applet.desktop ~/.config/autostart/nm-applet.desktop
并附加行
X-GNOME-Autostart-enabled=false
或者通过覆盖命令本身来阻止它:
ln -s /bin/true /usr/local/bin/nm-applet
值得注意的是,在这种情况下usr/local/bin
,当然必须位于 的标准位置之前。nm-applet
PATH
答案2
如果您依赖 ,为什么不直接禁用网络管理器服务wicd
,并简单地禁用自动启动nm-applet
:
$ sudo systemctl disable network-manager.service
$ sudo echo "Hidden=true" >> /etc/xdg/autostart/nm-applet.desktop
您还可以在干模式下检查 .desktop 文件的自动启动配置dex
(您可能需要sudo apt install dex
先这样做)
$ dex -ad
...
Executing command: gsettings-data-convert
Executing command: light-locker --late-locking
Executing command: /usr/lib/gnome-settings-daemon/gsd-a11y-settings
Executing command: /usr/lib/gnome-settings-daemon/gsd-color
Executing command: /usr/lib/gnome-settings-daemon/gsd-datetime
Executing command: /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
Executing command: /usr/lib/gnome-settings-daemon/gsd-housekeeping
Executing command: /usr/lib/gnome-settings-daemon/gsd-keyboard
Executing command: /usr/lib/gnome-settings-daemon/gsd-media-keys
Executing command: /usr/lib/gnome-settings-daemon/gsd-power
Executing command: /usr/lib/gnome-settings-daemon/gsd-print-notifications
Executing command: /usr/lib/gnome-settings-daemon/gsd-rfkill
Executing command: /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
Executing command: /usr/lib/gnome-settings-daemon/gsd-sharing
Executing command: /usr/lib/gnome-settings-daemon/gsd-smartcard
Executing command: /usr/lib/gnome-settings-daemon/gsd-sound
Executing command: /usr/lib/gnome-settings-daemon/gsd-wacom
Executing command: /usr/lib/gnome-settings-daemon/gsd-wwan
Executing command: /usr/lib/gnome-settings-daemon/gsd-xsettings
...
除非您精通配置 wifi 连接 - 包括wpa_supplicant.conf
从终端编辑 for key-mgmt - ,否则您绝对不应该弄乱nm-applet
中的网络管理器的 GUI 包装可执行文件本身/usr
,因为如果由于某种原因您的安装wicd
碰巧中断(用户错误、意外、更新中的错误等)您仍然拥有所有network-manager
包文件,包括nm-applet
作为后备的 GUI,允许您apt update && apt [install/upgrade/full-upgrade]