如何从GNOME Shell面板中删除图标?

我试着使用编辑器,但它说找不到。只是为了好看而已。

尝试使用alacarte软件包。 - Thomas Boxley
4个回答

arch-wiki中获取的解决方案:
在进行GNOME安装时,面板上可能会出现一些不需要的图标。要删除这些图标,请编辑GNOME面板脚本。

For example, to remove the universal access icon. Remove a11y from the AREA_ORDER line and comment out the a11y line in AREA_SHELL_IMPLEMENTATION

/usr/share/gnome-shell/js/ui/panel.js

const STANDARD_STATUS_AREA_ORDER = ['ally', 'keyboard', 'volume', 'network', 'bluetooth', 'battery', 'userMenu'];
const STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION = {
    'a11y': imports.ui.status.accessibility.ATIndicator
    'volume': imports.ui.status.volume.Indicator,
    'battery': imports.ui.status.power.Indicator,
    'keyboard': imports.ui.status.keyboard.XKBIndicator,
    'userMenu': imports.ui.userMenu.UserMenuButton
};

to

/usr/share/gnome-shell/js/ui/panel.js

const STANDARD_STATUS_AREA_ORDER = ['keyboard', 'volume', 'network', 'bluetooth' 'battery', 'userMenu'];
const STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION = {
    //'a11y': imports.ui.status.accessibility.ATIndicator
    'volume': imports.ui.status.volume.Indicator,
    'battery': imports.ui.status.power.Indicator,
    'keyboard': imports.ui.status.keyboard.XKBIndicator,
    'userMenu': imports.ui.userMenu.UserMenuButton
};

save your results and restart the shell to see results:

Alt+F2
r
Enter
我现在正在使用它,它与我的gnome-shell兼容!

使用Evil扩展可能会更好,因为对这些脚本的每次更新都会撤销工作。只有版本更新才需要对扩展进行修改。 - Gary

打开终端并输入以下命令: sudo nautilus /usr/share/applications

2这没有任何意义,而且已经有一个有效且被接受的答案了。 - David

使用:
按下 Alt 键 + 右键
打开菜单。

一个简单的任务 -
打开终端并输入 "sudo nautilus"(不带引号)
现在,转到usr/share/applications/(点击文件系统以查看usr文件夹)..
你会看到一堆应用程序,你不想在Gnome面板中看到的应用程序,将其从那里拖到另一个位置(无论是桌面、文件夹等等.. 不要删除它)..
会起作用的 ;)