恢复 GNOME 顶栏的托盘图标
GNOME
GNOME 是一款流行的 Linux 桌面环境，致力于为 Linux 用户提供现代化的桌面体验。


虽然这款桌面绝大部分功能都不错，但 GNOME 团队的某些决定确实也让许多用户恼火、质疑。


前脚不能在桌面摆放图标和文件，后脚将右键菜单中的 [新建文档选项移除](https://itsfoss.com/add-new-document-option/)，现在，除此之外，GNOME 同样也移除了托盘图标栏功能。


怎么说，你总得知道托盘图标栏是什么吧？这些小图标允许你使用相应应用程序的附加功能。我自己的 Ubuntu 系统里就有许多托盘图标。


![托盘图标栏](/data/attachment/album/202109/15/091944jilbl4qztcit5ibk.jpg)


这一砍就砍出了大问题，尤其是针对那些完全依赖托盘图标的软件的致命打击。就拿 [Dropbox](https://www.dropbox.com) 举例子吧，你只能通过 Dropbox 的托盘图标菜单来访问 Dropbox 的设置页面，很不幸，你在 GNOME 中就完全找不到这个图标。


这确实是个大问题，好在，我们还是有解决办法的。


### 借助插件来重新启用 GNOME 的托盘图标栏


如果你在用 GNOME，想必你已经知道 GNOME 插件是什么了。这些小插件基本上是由热心的独立开发者开发的。


如果你没有准备好，那么就去 [启用 GNOME 插件](https://itsfoss.com/gnome-shell-extensions/) 吧。这一步其实非常简单，使用 Chrome 或 Firefox 打开任意一个插件的页面，然后页面会提示你安装浏览器扩展。安装这个扩展，然后就可以启程了。


![启用 GNOME 插件的浏览器扩展](/data/attachment/album/202109/15/091955hb51moetbta1hb5y.jpg)


现在，有一些可以向顶栏增加托盘图标的 GNOME 插件。在撰写本篇教程的时候，[AppIndicator and KStatusNotifierItem Support](https://extensions.gnome.org/extension/615/appindicator-support/) 这款插件在 GNOME 的较新版本中已经有良好的开发优化与支持。


前往插件的页面：


* [AppIndicator 插件](https://extensions.gnome.org/extension/615/appindicator-support/)


在这个页面中，你应该能看到一个开关按钮。点击这个按钮即可安装该插件。


![](/data/attachment/album/202109/15/092004l8441azsihy6w86j.jpg)


接下来会有一个弹窗，弹出后请点击“安装”。


![安装插件](/data/attachment/album/202109/15/091844y211l0k44ul411l4.png)


也许安装插件后，插件不会立即生效。此时，你必须重启 GNOME。在 Xorg 会话中，你只需要按下 `Alt + F2` 并输入 `r` 即可重启 GNOME，但这个操作不支持 Wayland 会话。


注销当前会话，并且重新登录，此后托盘图标应该就能成功启用了。如果你安装了任何一款带托盘图标的软件，那么你应该可以在顶栏上看见这些图标的身影了。


于我而言，我已经安装了 Dropbox，因此托盘图标就直接出现在顶栏上了。


![Dropbox 托盘图标在 GNOME 下可用的截图](/data/attachment/album/202109/15/092011fnrv0x5ntxkxgz99.jpg)


希望这个小技巧能帮助你恢复 GNOME 顶栏中的托盘图标。


我完全不理解，为什么 GNOME 的开发者会认为把这种实用性极强的功能删除会是个好主意。不过，上帝关上了一扇门，却（通常）会再打开一扇窗。好好享受按你的偏好运作的 GNOME 吧。




---


via: <https://itsfoss.com/enable-applet-indicator-gnome/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[imgradeone](https://github.com/imgradeone) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

GNOME is the popular desktop environment that thrives to give Linux a modern desktop experience.

While it works for the most part, some of their decisions has left the user fuming and questioning.

You cannot have icons and files on the desktop, [new document option has been removed](https://itsfoss.com/add-new-document-option/) from the right click context menu. In addition to that, GNOME has also removed the applet indicator functionality.

You know what indicator applets are, don’t you? Those little icons that let you access additional features of the given application. I have plenty of them in my Ubuntu system.

![indicator applet linux](https://itsfoss.com/content/images/wordpress/2021/09/indicator-applet-linux.webp)

And this creates a problem, specially for applications that rely completely on these applet indicators to function. Take [Dropbox](https://www.dropbox.com/?ref=itsfoss.com) for example. The only way to access Dropbox settings is through the app-indicator and you won’t find it in GNOME.

That’s a problem, but thankfully, there is a workaround for that.

## Enabling applet indicator in GNOME via extensions

If you are using GNOME, you probably already know what GNOME Extensions are. These are basically small add-ons developed by enthusiastic, independent developers.

If not done already, [enable GNOME extensions](https://itsfoss.com/gnome-shell-extensions/). It’s actually quite simple. Go to any GNOME extension’s page using Firefox or Chrome and it will suggest downloading a browser extension. Install it and you are good to go.

![installing gnome extension add on](https://itsfoss.com/content/images/wordpress/2021/09/installing-gnome-extension-add-on-800x355.webp)

Now, there are several GNOME extensions available that allow adding applet indicators in the top panel. At the time of writing this tutorial, [AppIndicator and KStatusNotifierItem Support](https://extensions.gnome.org/extension/615/appindicator-support/?ref=itsfoss.com) extension is well developed and supported for the recent GNOME versions.

Go to its webpage:

On the page, you should see a toggle button. Click it to install it.

![appindicator extension](https://itsfoss.com/content/images/wordpress/2021/09/appindicator-extension-800x329.webp)

There will be a pop-up. Hit install when you see it.

![installing appindicator extension](https://itsfoss.com/content/images/wordpress/2021/09/installing-appindicator-extension.png)

The results may be seen immediately. If you have any applications installed that provides an indicator applet, you should see it on the top panel.

If that's not the case, you’ll have to restart GNOME. On Xorg, you could just use Alt+F2 and enter r but that does not work in Wayland.

Log out of the system and log back in. Applet indicator should be activated now.

In my case, I had Dropbox already installed and hence it started showing the icon in the top panel.

![Dropbox indicator working in GNOME](https://itsfoss.com/content/images/wordpress/2021/09/gnome-dropbox-indicator-800x561.webp)

I hope this little tip help you gain access to the app indicators in the top panel of GNOME again.

## More on GNOME tweaking

There is another extension that provides similar features. You may try that as well if you want.

[Tray Icons: Reloaded - GNOME Shell Extensions](https://extensions.gnome.org/extension/2890/tray-icons-reloaded/)![](https://extensions.gnome.org/static/images/gnome-extensions.2635f103c955.svg)


If you want some more GNOME customization, try this:

[Customizing GNOME with Just Perfection ExtensionAdd new customization aspects to your Linux desktop with Just Perfection GNOME Extension.](https://itsfoss.com/just-perfection-gnome-extension/)![](https://itsfoss.com/content/images/2023/09/customising-gnome-with-just-perfection.png)


![](https://itsfoss.com/content/images/2023/09/customising-gnome-with-just-perfection.png)

I do not know why the GNOME developers though that dropping this essential feature was a good idea. Anyway, if one door closes, another opens (usually). Enjoy GNOME to your liking.