WxTaskBarIcon on Ubuntu 12.10

I built wxWidgets 2.9.3 (for now I have to stick with this version) under Ubuntu 12.10 and I cannot use the class wxTaskBarIcon. The sample that comes with wxWidgets compiles and runs, but the icon itself does not appear on the taskbar. I checked my configuration and I know that the compilation of the wxWidgets libraries was done with the default setting (which is “yes” to support the taskbar).

Any idea how to make it work? Is this a problem with wxWidgets and / or a version of Ubuntu?

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

Edit 2: In case it matters: The system is on VirtualBox 4.2.6 installed with all the default settings. I install updates at least once a week.

+5
source share
1 answer

On Ubuntu since 11.04, the taskbar is controlled by Unity, which by default does not allow all programs to place their icons there. You must configure the application whitelist so that it can access the taskbar. This is where I found the answer initially:

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

Basically you should call:

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

, . YOUR_APPLICATION Unity.Panel. , , . , , :

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

( ) "['all']". .

, Ubuntu , AppIndicator . , wxTaskBarIcon , AppIndicator.

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

+3

All Articles