Type : Bug
Priority : Low
Gambas version : Unknown
Product : GUI components
Not long ago I developed a sniffer of "rogue" dhcp servers using Gambas. Everything works like a charm except for TrayIcon component.
I tried the following steps:
1. Selected necessary component in Projects > Properties > Components > gb.gui.trayicon
2. Moved a TrayIcon element to the main form
3. Set suitable image for Picture property
4. Set Visible property to true
5. Started application
The application starts but there is no icon in tray.
Tried both 3.8.4 and 3.9.2 versions of Gambas. No icon!
Tried both 32 and 64 bit architectures. No icon!
Tried by creating different types of projects:
- Graphical application
- GTK+2 application
- GTK+3 application
- QT application
The same result: no icon!
Tried both XUbuntu with XFCE and LUbuntu with LXDE. No icon!
Tried on classic Ubuntu with Unity: icon appears in tray.
Tried on Kubuntu with KDE: icon appears in tray.
Also installed XUbuntu then removed XFCE and installed LXQT instead. Everything works.
As I can understand the problem appears only when either LXDE or XFCE is useed as desktop environment.
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi _______________________________________________
Gambas-user mailing list
[hidden email] https://lists.sourceforge.net/lists/listinfo/gambas-user
Trayicon appears when one uses classical Ubuntu with Unity graphical environment with postinstalled LXDE or XFCE in addition. But it doesnt work when it comes to XUbuntu linux distribution with preinstalled XFCE or Lubuntu with LXDE. Perhaps it is a distribution problem. I tested on both 14.04.5 and 16.04.1 versions of XUbuntu. The same result.
I installed a fresh Lubuntu from scratch, and I confirm the problem.
What happens is that a DBus system tray is apparently registered, so Gambas switches to DBus tray icon mode. But nothing appears on the LXDE notification zone, even if the Gambas program succeeded in registering its icon.
So it's weird, and investigation continues...
Benoît MINISINI changed the state of the bug to: Accepted.
It may be a problem with the gui. I've noticed that the Systray behaves differently depending upon the Gui GTK vs GTK3 vs QT5 vs QT4. I know that the problems I saw are on the Systray server side but it may affect the client side as well.
Run the test project and the icon appears,
Showing this message in console,
"Sni-qt / 3372" WARN 17: 15: 39.288 void StatusNotifierItemFactory :: connectToSnw () Invalid interface to SNW_SERVICE