标题说明了一切。我不希望使用该applet,因为当我处于wifi质量较差的环境中时,它会很烦人地弹出窗口,中断其他活动,例如全屏玩游戏。我的网络管理器配置正常,谢谢nm-applet,请闭嘴。
我当前的解决方案是终止nm-applet
进程。但是,这不是一个好习惯,因此不应从头开始。我也可以删除该软件包,但这也不是一个好的解决方案,因为我有时还是想使用它,并且每次卸载/重新安装确实很丑陋,以及摆弄软件包文件(例如清除执行位)或重命名,这将导致软件包不一致的安装。
我尝试复制/etc/xdg/autostart/nm-applet.desktop
到~/.config/autostart
和:
NotShowIn=KDE;GNOME;GNOME-Flashback;
=>没有运气X-GNOME-Autostart-enabled=false
=>没有运气ln -s /dev/null ~/.config/autostart/nm-applet.desktop
=>没有运气因此,我的猜测是,它不是从开始的/etc/xdg/autostart
。
我尝试过gsettings set org.gnome.nm-applet show-applet false
,也没有运气。我认为这非常不言自明,可以正常工作,但没有。
更准确地说,我在GDM登录屏幕中使用了名为GNOME Flashback(Metacity)的会话。
有什么建议吗?是硬编码还是什么?
解决了 :
由于以下答案,我发现该文件确实位于autostart目录中,但不是我要找的文件。但是,不是修改文件本身,而是将其复制~/.config/autostart
并附加了X-GNOME-Autostart-enabled=false
。应答者的方法适用于整个系统,而我的方法仅适用于当前用户。
请注意专家的宝贵意见
您不应该
/etc/xdg/autostart
手动直接在目录内编辑文件。这是一个坏主意,错误的方法和错误的建议。下次更新软件包时,它将被覆盖。而是-将此文件复制到~/.config/autostart
,然后根据需要进行编辑。或使用GNOME GUI工具启动应用程序(gnome-session-properties)。
gnome-flashback-nm-applet.desktop
使用以下命令打开文件
sudo -H gedit /etc/xdg/autostart/gnome-flashback-nm-applet.desktop
并编辑如下内容
[Desktop Entry]
Name=Network (GNOME Flashback)
Comment=Manage your network connections
# TRANSLATORS: Don't translate this text (this is icon name)
Icon=nm-device-wireless
Exec=nm-applet
TryExec=nm-applet
Terminal=false
Type=Application
NoDisplay=true
OnlyShowIn=noGNOME-Flashback; ### I have changed this line. ###
X-GNOME-UsesNotifications=true
X-Ubuntu-Gettext-Domain=gnome-flashback
cp /etc/xdg/autostart/gnome-flashback-nm-applet.desktop ~/.config/autostart/
并~/.config/autostart/gnome-flashback-nm-applet
如下所示编辑文件
[Desktop Entry]
Name=Network (GNOME Flashback)
Comment=Manage your network connections
# TRANSLATORS: Don't translate this text (this is icon name)
Icon=nm-device-wireless
Exec=nm-applet
TryExec=nm-applet
Terminal=false
Type=Application
NoDisplay=true
OnlyShowIn=noGNOME-Flashback; ### I have changed this line. ###
X-GNOME-UsesNotifications=true
X-Ubuntu-Gettext-Domain=gnome-flashback
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句