Xpra: Ticket #1481: no xpra menu in systemtray with Ubuntu 17.04

Hi, if I run

xpra shadow ssh:andi@localhost \
    --no-clipboard --no-pulseaudio --no-printing --no-speaker \
    --no-cursors --dbus-control=no --dbus-proxy=no --use-display --no-daemon

xpra does not show up on system tray

Client os: xenial 17.04, xpra latest version

if i run xpra attach.....symbol shows up

greets



Sun, 02 Apr 2017 10:02:02 GMT - Antoine Martin: owner, description changed; milestone set

Works for me on Fedora with gnome-shell. Can you post the "-d tray" output?


Sun, 02 Apr 2017 19:41:28 GMT - B:

HI, I'm using unity with xenial.

xpra shadow ssh:andreas@localhost --no-clipboard --no-pulseaudio --no-printing --no-speaker --no-cursors --dbus-control=no --dbus-proxy=no --use-display --no-daemon --ssh="ssh -p 2222" -d tray
Warning: running as root
2017-04-02 21:41:51,013 Xpra gtk2 client version 2.1-r15340 64-bit
2017-04-02 21:41:51,014  running on Linux Ubuntu 17.04 zesty
Warning: running as root
2017-04-02 21:41:51,466 GStreamer version 1.10.4 for Python 2.7.13 64-bit
2017-04-02 21:41:51,812 PyOpenGL warning: missing accelerate module
2017-04-02 21:41:51,814 Error loading OpenGL support:
2017-04-02 21:41:51,814  local variable 'window' referenced before assignment
2017-04-02 21:41:51,818 make_tray_menu_helper() tray menu helper classes: [<class 'xpra.client.gtk2.tray_menu.GTK2TrayMenu'>]
2017-04-02 21:41:51,819 Error setting up dbus signals:
2017-04-02 21:41:51,819  No module named dbus.mainloop.glib
2017-04-02 21:41:51,825  keyboard settings: rules=evdev, model=pc105, layout=de,us
2017-04-02 21:41:51,826  desktop size is 3840x2160 with 1 screen:
2017-04-02 21:41:51,826   :0.0 (1016x572 mm - DPI: 96x95) workarea: 3775x2136 at 65x24
2017-04-02 21:41:51,826     monitor 1 (607x345 mm - DPI: 160x159)
2017-04-02 21:41:51,857 Warning: invalid frame extents value '[0, 0, 0, 0, 0, 0, 28, 0]'
2017-04-02 21:41:51,857  this is probably a bug in 'Compiz'
2017-04-02 21:41:51,857  using '[0, 0, 28, 0]' instead
2017-04-02 21:41:51,863 keyboard layouts: de,us,de,us
2017-04-02 21:41:51,875 get_tray_title()=ssh/andreas@localhost/
2017-04-02 21:41:51,876 tray GUESS_GEOMETRY=False
2017-04-02 21:41:51,876 make_tray(0, <gtk.Menu object at 0x7fd1b2ffadc0 (GtkMenu at 0x564d92f76150)>, 'ssh/andreas@localhost/', 'xpra', <function xpra_tray_geometry at 0x7fd1b30dd1b8>, <function xpra_tray_click at 0x7fd1b301a7d0>, <function xpra_tray_mouseover at 0x7fd1b2ff8f50>, <function xpra_tray_exit at 0x7fd1b309f5f0>) tray classes=[<class 'xpra.client.gtk_base.statusicon_tray.GTKStatusIconTray'>]
2017-04-02 21:41:51,882 set_icon(None) using filename=/usr/share/xpra/icons/xpra.png
2017-04-02 21:41:51,883 set_icon_from_file(/usr/share/xpra/icons/xpra.png) tray_widget=<gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>
2017-04-02 21:41:51,883 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7fd1a0fbc460 (GdkScreenX11 at 0x564d9283e530)>, gtk.gdk.Rectangle(0, 0, 200, 200), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-02 21:41:51,883 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7fd1a0fbc460 (GdkScreenX11 at 0x564d9283e530)>, gtk.gdk.Rectangle(0, 0, 200, 200), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-02 21:41:51,883 set_icon_from_pixbuf(<gtk.gdk.Pixbuf object at 0x7fd1a0fbc5a0 (GdkPixbuf at 0x564d92ee8ea0)>) geometry=(0, 0, 24, 64), icon size=(48, 48)
2017-04-02 21:41:51,883 setup_xpra_tray(xpra)=<xpra.client.gtk_base.statusicon_tray.GTKStatusIconTray object at 0x7fd1a0fa9c10>
2017-04-02 21:41:51,883 <gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>.set_visible(True)
2017-04-02 21:41:51,885 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7fd1b28fc640 (GdkScreenX11 at 0x564d9283e530)>, gtk.gdk.Rectangle(0, 0, 24, 64), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-02 21:41:51,885 xpra_tray_geometry(<gtk.StatusIcon object at 0x7fd1a0fbc2d0 (GtkStatusIcon at 0x564d92ee8e20)>, 64) geometry=(0, 0, 24, 64)
andreas@localhost's password:
Entering daemon mode; any further errors will be reported to:
  /run/user/1001/xpra/:0.log
2017-04-02 21:42:08,501 Xpra shadow server version 2.1-r15468 64-bit

greets


Mon, 03 Apr 2017 09:55:43 GMT - Antoine Martin: owner, description changed

r15340 is a bit old, there are newer beta builds, fixing a number of issues including some I can see in your log output ("opengl window" warning) Is python-appindicator installed? Can you post the "xpra attach -d tray" debug output to compare? Please also post the output of:

python2 ./xpra/platform/gui.py| grep -i tray

And:

python -c "from xpra.platform.xposix.appindicator_tray import can_use_appindicator;print(can_use_appindicator())"

Mon, 03 Apr 2017 18:38:12 GMT - B:

hi,

dpkg -l | grep python-appindicator
ii  python-appindicator                             12.10.1+17.04.20170215-0ubuntu1             amd64        Python bindings for libappindicator
python -c "from xpra.platform.xposix.appindicator_tray import can_use_appindicator;print(can_use_appindicator())"
False
 python2 ./xpra/platform/gui.py| grep -i traypython2: can't open file './xpra/platform/gui.py': [Errno 2] No such file or directory
root@andreas-desktop:/home/andreas# find / -name gui.py
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/share/system-config-printer/gui.py
/usr/lib/python2.7/dist-packages/xpra/platform/xposix/gui.py
/usr/lib/python2.7/dist-packages/xpra/platform/gui.py
root@andreas-desktop:/home/andreas# xpra attach ssh:andreas@localhost --no-clipboard --no-pulseaudio --no-printing --no-speaker --no-cursors --dbus-control=no --dbus-proxy=no --use-display --no-daemon --ssh="ssh -p 2222" -d tray
Warning: running as root
2017-04-03 20:29:22,632 Xpra gtk2 client version 2.1-r15494 64-bit
2017-04-03 20:29:22,632  running on Linux Ubuntu 17.04 zesty
Warning: running as root
2017-04-03 20:29:23,079 GStreamer version 1.10.4 for Python 2.7.13 64-bit
2017-04-03 20:29:23,383 PyOpenGL warning: missing accelerate module
2017-04-03 20:29:23,498 OpenGL enabled with GeForce GTX 750 Ti/PCIe/SSE2
2017-04-03 20:29:23,503 make_tray_menu_helper() tray menu helper classes: [<class 'xpra.client.gtk2.tray_menu.GTK2TrayMenu'>]
2017-04-03 20:29:23,503 Error setting up dbus signals:
2017-04-03 20:29:23,503  No module named dbus.mainloop.glib
2017-04-03 20:29:23,509  keyboard settings: rules=evdev, model=pc105, layout=de,us
2017-04-03 20:29:23,509  desktop size is 3840x2160 with 1 screen:
2017-04-03 20:29:23,509   :0.0 (1016x572 mm - DPI: 96x95) workarea: 3775x2136 at 65x24
2017-04-03 20:29:23,509     monitor 1 (607x345 mm - DPI: 160x159)
2017-04-03 20:29:23,535 Warning: invalid frame extents value '[0, 0, 0, 0, 0, 0, 28, 0]'
2017-04-03 20:29:23,535  this is probably a bug in 'Compiz'
2017-04-03 20:29:23,535  using '[0, 0, 28, 0]' instead
2017-04-03 20:29:23,541 keyboard layouts: de,us,de,us
2017-04-03 20:29:23,553 get_tray_title()=ssh/andreas@localhost/
2017-04-03 20:29:23,555 tray GUESS_GEOMETRY=False
2017-04-03 20:29:23,555 make_tray(0, <gtk.Menu object at 0x7f5ab16755f0 (GtkMenu at 0x5650909ad170)>, 'ssh/andreas@localhost/', 'xpra', <function xpra_tray_geometry at 0x7f5ab1650f50>, <function xpra_tray_click at 0x7f5ab1665140>, <function xpra_tray_mouseover at 0x7f5ab16799b0>, <function xpra_tray_exit at 0x7f5ab1679938>) tray classes=[<class 'xpra.client.gtk_base.statusicon_tray.GTKStatusIconTray'>]
2017-04-03 20:29:23,556 set_icon(None) using filename=/usr/share/xpra/icons/xpra.png
2017-04-03 20:29:23,556 set_icon_from_file(/usr/share/xpra/icons/xpra.png) tray_widget=<gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>
2017-04-03 20:29:23,556 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7f5a9b399c80 (GdkScreenX11 at 0x5650904e2730)>, gtk.gdk.Rectangle(0, 0, 200, 200), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-03 20:29:23,556 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7f5a9b399c80 (GdkScreenX11 at 0x5650904e2730)>, gtk.gdk.Rectangle(0, 0, 200, 200), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-03 20:29:23,556 set_icon_from_pixbuf(<gtk.gdk.Pixbuf object at 0x7f5a9b399dc0 (GdkPixbuf at 0x5650914f26a0)>) geometry=(0, 0, 24, 64), icon size=(48, 48)
2017-04-03 20:29:23,556 setup_xpra_tray(xpra)=<xpra.client.gtk_base.statusicon_tray.GTKStatusIconTray object at 0x7f5a9b398810>
2017-04-03 20:29:23,556 <gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>.set_visible(True)
2017-04-03 20:29:23,557 GTKStatusIconTray.get_geometry() <gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>.get_geometry()=(<gtk.gdk.ScreenX11 object at 0x7f5aa0ad3af0 (GdkScreenX11 at 0x5650904e2730)>, gtk.gdk.Rectangle(0, 0, 24, 64), <enum GTK_ORIENTATION_HORIZONTAL of type GtkOrientation>)
2017-04-03 20:29:23,557 xpra_tray_geometry(<gtk.StatusIcon object at 0x7f5a9b399af0 (GtkStatusIcon at 0x56509050e100)>, 64) geometry=(0, 0, 24, 64)
andreas@localhost's password:
2017-04-03 20:29:30,921 Xpra X11 server version 2.1-r15494 64-bit
2017-04-03 20:29:30,922  running on Linux Ubuntu 16.04 xenial
2017-04-03 20:29:30,922 enabled remote logging
2017-04-03 20:29:30,922 Attached to ssh/andreas@localhost/ (press Control-C to detach)
^C
got signal SIGINT, exiting

updated xpra to the latest versions. i started first xpra as root and later xpra attach/shadow as normal user andreas....but the xpra tray icon does not appear in BOTH modes. On my computer at work i tested xpra attach mode. On computer at work xpra tray icon shows up. Both clients are xpra xenial...


Tue, 04 Apr 2017 07:35:18 GMT - B:

Hi, i checked again my computer at home. Im using Zesty at home not as said xenial. Maybe that info will help...

greets


Tue, 04 Apr 2017 08:24:11 GMT - Antoine Martin:

i checked again my computer at home. Im using Zesty at home not as said xenial. Maybe that info will help...

"Maybe"! See the very first line in wiki/ReportingBugs: what operating system is used on both the client and server, including the full version details. So I've wasted my time testing with the wrong OS version.


Tue, 04 Apr 2017 10:40:16 GMT - Antoine Martin: owner, description, summary changed

Trivial fix: r15514.

There are beta packages with this fix. This will be included in the next round of updates. Please close if this works for you.


Tue, 04 Apr 2017 17:49:21 GMT - B: status changed; resolution set

works, thanks a lot

greets


Sat, 23 Jan 2021 05:25:26 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1481