![banner-01 banner-01](https://i-blog.csdnimg.cn/blog_migrate/889138979954ceea54843f9dc40e9a06.png)
Ubuntu’s new Unity is a slick interface, but they’ve pared things down to keep it that way. Not many icons appear in the system tray, even for apps that are running. Luckily for us, there’s an easy fix.
Ubuntu的新Unity是一个漂亮的界面,但他们已经简化了一些工作以保持这种状态。 即使对于正在运行的应用程序,系统托盘中也不会出现很多图标。 对我们来说幸运的是,有一个简单的解决方法。
The Unity interface is still pretty rough around the edges, enough so that plenty of users have switched back to Gnome. If you’re still using Unity, though, you’ll notice that very few applications’ system tray icons are displayed in the system tray.
Unity界面的边缘仍然很粗糙,足以使许多用户切换回Gnome。 但是,如果您仍在使用Unity,则会注意到很少有应用程序的系统托盘图标显示在系统托盘中。
![tray before tray before](https://i-blog.csdnimg.cn/blog_migrate/5343e1356959b46a781b08c8455068a4.png)
This makes for a very uncluttered interface, but what about those apps whose icons you need? What if you like having all of them displayed? There’s a pretty easy solution to these problems, but first, we need to install a configuration editor.
这使得界面非常整洁,但是那些需要其图标的应用程序呢? 如果您希望显示所有这些怎么办? 对于这些问题有一个非常简单的解决方案,但是首先,我们需要安装配置编辑器。
For a change, we’ll use the GUI-based Ubuntu Software Center. Open it up and search for “dconf”.
进行更改时,我们将使用基于GUI的Ubuntu软件中心。 打开它并搜索“ dconf”。
![software center software center](https://i-blog.csdnimg.cn/blog_migrate/c6e115bd1be817887b7def395e0752d2.png)
You’ll see “dconf Editor” come up. Click the button to install it, then enter your password at the prompt.
您会看到“ dconf编辑器”出现。 单击按钮进行安装,然后在提示时输入密码。
Next, hit the Alt+F2 key combination. You’ll see a prompt come up to enter a command, so type in:
接下来,按Alt + F2组合键。 您会看到提示输入命令的提示,因此输入:
dconf-editor
dconf编辑器
![launch dconf launch dconf](https://i-blog.csdnimg.cn/blog_migrate/d534ac7c7499eec724e9e9299ad86d7e.png)
Hit enter to launch the dconf configuration editor.
点击Enter启动dconf配置编辑器。
In the left-hand navigation tree, navigate here:
在左侧导航树中,导航至:
desktop > unity > panel
桌面>统一>面板
![config location config location](https://i-blog.csdnimg.cn/blog_migrate/f8539309eeaf7e77c4ec88d2d321df3f.png)
(Click on the image above to see a larger version.)
(单击上面的图像查看大图。)
You can see that there’s an entry named “systray-whitelist”. The default values are:
您会看到有一个名为“ systray-whitelist”的条目。 默认值为:
‘JavaEmbeddedFrame’, ‘Mumble’, ‘Wine’, ‘Skype’, ‘hp-systray’, ‘scp-dbus-service’
'JavaEmbeddedFrame','Mumble','Wine','Skype','hp-systray','scp-dbus-service'
It’s a pretty slim list between those brackets, and most of the more useful apps aren’t listed. You can extend this list by adding a comma, a space, then the name of the app in single quotes. Here’s an example:
这些括号之间的列表很小,而且大多数有用的应用程序都没有列出。 您可以通过添加逗号,空格,单引号将应用程序的名称扩展来扩展此列表。 这是一个例子:
‘JavaEmbeddedFrame’, ‘Mumble’, ‘Wine’, ‘Skype’, ‘hp-systray’, ‘scp-dbus-service’, ‘shutter’, ‘easycrypt’
'JavaEmbeddedFrame','Mumble','Wine','Skype','hp-systray','scp-dbus-service','shutter','easycrypt'
To allow all system tray icons, just replace the entire string with ‘all’ (in the single quotes).
要允许所有系统任务栏图标,只需将整个字符串替换为'all'(在单引号中)。
![config allow all config allow all](https://i-blog.csdnimg.cn/blog_migrate/485c0ca2fec577e2f75634bf2d2a1433.png)
For these settings to take effect, just log out and log back in.
为了使这些设置生效,只需注销并重新登录。
![tray after tray after](https://i-blog.csdnimg.cn/blog_migrate/8d04fce86ab14fed4e3063229f94e2f5.png)
If you don’t like this you can open up dconf-editor again, go back to the proper entry, and click the “Set to Default” button in the bottom-right corner.
如果您不喜欢它,则可以再次打开dconf-editor,返回到正确的条目,然后单击右下角的“设置为默认值”按钮。
![config reset to default config reset to default](https://i-blog.csdnimg.cn/blog_migrate/247f37c82ef8250ff88ea36b3881fb3e.png)
Unity’s not incredibly polished yet, something that’s sure to change in the upcoming Ubuntu releases. Little fixes like this help make it more usable in the meanwhile.
Unity尚未得到完美的完善,在即将发布的Ubuntu版本中肯定会有所改变。 像这样的小修补程序可以同时使它更有用。
Love Unity? Hate it? Like it’s aesthetics, but dislike how it incomplete it is? Share your thoughts in the comments, as well as any other fixes you might have!
爱团结? 讨厌它? 喜欢它的美学,但不喜欢它是多么不完整? 在评论中分享您的想法,以及您可能拥有的任何其他解决方案!
翻译自: https://www.howtogeek.com/68119/how-to-bring-app-icons-back-into-unitys-system-tray/