[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

ABDUL ZAGIROV reported a new bug.

Summary
-------

Icon does not appear in tray

Type             : Bug
Priority         : Low
Gambas version   : Unknown
Product          : GUI components


Description
-----------

Hi, everyone!

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.

Best regards,
Abdul Zagirov!


System information
------------------

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.4.0-57-generic
Architecture=x86_64
Distribution=Ubuntu 16.04.1 LTS
Desktop=XFCE
Theme=Gtk
Language=ru_RU.UTF-8
Memory=1873M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-1.0.so.0.802.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-PieI6BpzcU
DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
DESKTOP_SESSION=xubuntu
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=xubuntu
GDM_LANG=ru
GLADE_CATALOG_PATH=:
GLADE_MODULE_PATH=:
GLADE_PIXMAP_PATH=:
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GPG_AGENT_INFO=<home>/.gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=xim
GTK_OVERLAY_SCROLLING=0
HOME=<home>
IM_CONFIG_PHASE=1
INSTANCE=
JOB=dbus
LANG=ru_RU.UTF-8
LANGUAGE=ru
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
PATH=<home>/bin:<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_STYLE_OVERRIDE=gtk
SESSION=xubuntu
SESSIONTYPE=
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2468,unix/<hostname>:/tmp/.ICE-unix/2468
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=started xsession
UPSTART_INSTANCE=
UPSTART_JOB=startxfce4
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/2172
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=xubuntu
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=none



------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Benoît MINISINI changed the state of the bug to: Accepted.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #1 by Benoît MINISINI:

If you use a modern desktop, the DBUS trayicon protocol is used. Otherwise, the old trayicon protocol is used.

I will install LXDE to check the deal.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #2 by Benoît MINISINI:

I have just tested with LXDE on Ubuntu. I have no problem with having a working tray icon.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Benoît MINISINI added an attachment:

trayicon-lxde.png



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #3 by Benoît MINISINI:

Please post a little project that reproduces your problem.

Benoît MINISINI changed the state of the bug to: NeedsInfo.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #4 by ABDUL ZAGIROV:

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.

/home/abdul/downloads/trayicon-xubuntu.tar.gz



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

ABDUL ZAGIROV added an attachment:

trayicon-xubuntu.tar.gz



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #5 by Benoît MINISINI:

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.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #6 by Benoît MINISINI:

Is it possible for you to test revision #8081?



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #7 by ABDUL ZAGIROV:

Yes, but only when the revision will be available through gambas ppa ( https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily ).



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #8 by ABDUL ZAGIROV:

I prepared a virtual machine on VirtualBox with XUbuntu 16.04.1 32 bit fro testing purposes. Installed Gambas from daily builds ppa. Made test ones more but, unfortunately, no results.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #9 by Benoît MINISINI:

Can you try revision #8086? I succeeded in showing tray icons on LXDE by using indicators (Ubuntu tray icon protocol) instead of KDE tray icon protocol.

Benoît MINISINI changed the state of the bug to: NeedsInfo.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #10 by Abdul ZAGIROV:

Tried new revision and it works in Ubuntu, KUbuntu and LUbuntu. But the problem still exists in XUbuntu.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Benoît MINISINI changed the state of the bug to: Working.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #11 by Tony MOREHEN:

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.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #12 by Víctor PEREZ:

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
Greetings.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4-

Comment #13 by Víctor PEREZ:

Sorry I missed putting the icon on the bar
(Icon is shown in bar)



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user