wxTaskBarIcon在Ubuntu 12.10 [英] wxTaskBarIcon in Ubuntu 12.10

查看:222
本文介绍了wxTaskBarIcon在Ubuntu 12.10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立wxWidgets 2.9.3(目前我必须坚持这个版本)在Ubuntu 12.10下,我似乎不能使用 wxTaskBarIcon 类。 wxWidgets提供的示例正在编译和运行,但是图标本身不会显示在任务栏上。我检查了我的配置,我知道,wxWidgets库的编译执行默认设置(任务栏支持是)。

I built wxWidgets 2.9.3 (for the moment I must stick to this version) under Ubuntu 12.10 and I can't seem to use wxTaskBarIcon class. The sample which is delivered with wxWidgets is compiling and running, but the icon itself is not showing on the taskbar itself. I checked my config, and I know, that compilation of wxWidgets libraries were executed with default setting (which is "yes" for taskbar support).

任何想法如何使它工作?这是与wxWidgets和/或Ubuntu版本相关的问题?

Any idea how to make it working? Is this problem related with wxWidgets and/or Ubuntu version?

编辑:
它绝对不连接到wxWidgets版本(根据wx 2.8, 3,2.9.4)。

It is definitely not connected to the wxWidgets version (checked under wx 2.8, 2.9.3, 2.9.4).

编辑2:
万一重要:
系统是在VirtualBox 4.2.6,默认设置。

Edit 2: In case it matters: System is on VirtualBox 4.2.6, installed with the all default settings. I am installing updates at least once a week.

推荐答案

在Ubuntu自11.04以来,任务栏由Unity管理,默认情况下不会允许所有程序将其图标放在那里。您必须将您的应用程序列入白名单,让其访问任务栏。这里是我最初找到答案的地方:

Under Ubuntu since 11.04 taskbar is managed by Unity which by default doesn't allow all programs to put their icons there. You must whitelist your application to let it access taskbar. Here is where I found the answer originally:

http://ubuntuforums.org/showthread.php?t=1737589

基本上您必须致电:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'YOUR_APPLICATION']"

然后注销,登录。这将添加YOUR_APPLICATION到Unity.Panel白名单。请记住,在这种情况下,您还必须列出在该列表中的项目。您可以通过调用以下方式查看白名单的外观:

Then log out, log in. This will add YOUR_APPLICATION to the Unity.Panel whitelist. Bear in mind that in this case you must also list items which were on that list beforehand. You can check how whitelist looks by calling:

gsettings get com.canonical.Unity.Panel systray-whitelist

在我的情况下(因为我正在开发环境中)我只是设置为 all']。这将允许所有应用程序访问任务栏。

In my case (as I am working on development environment) I just set it to "['all']". This will allow all applications to access taskbar.

请记住,Ubuntu将会放弃这种支持,并且在将来应该使用AppIndicator库来实现这个目标。这意味着,除非它将使用AppIndicator库,否则wxTaskBarIcon将不会在白名单中工作。

Bear in mind that Ubuntu will be dropping such support and in the future you should use AppIndicator library instead to achieve that goal. This means, that wxTaskBarIcon won't be working even with whitelist unless it'll be using AppIndicator library.

源: >

Source: http://www.webupd8.org/2013/02/unity-notification-area-systray.html

这篇关于wxTaskBarIcon在Ubuntu 12.10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆