如何将应用程序图标带回Unity的系统托盘

banner-01

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

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

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

Hit enter to launch the dconf configuration editor.

点击Enter启动dconf配置编辑器。

In the left-hand navigation tree, navigate here:

在左侧导航树中,导航至:

desktop > unity > panel

桌面>统一>面板

config location

(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

For these settings to take effect, just log out and log back in.

为了使这些设置生效,只需注销并重新登录。

tray after

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


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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值