After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700384 - GMenu doesn't work over X forwarding
GMenu doesn't work over X forwarding
Status: RESOLVED DUPLICATE of bug 671802
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
unspecified
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-15 12:31 UTC by Pierre Ossman
Modified: 2014-08-21 01:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pierre Ossman 2013-05-15 12:31:22 UTC
Starting Nautilus over SSH X forwarding. Works fine, except nothing happens when I try to open the application menu. No errors are printed to stderr either.

Since critical things are hidden in there, this is a rather severe bug in the user interface.
Comment 1 Pierre Ossman 2013-05-16 09:01:31 UTC
I looked at the code, and it seems like it uses DBus for this feature. So back to the drawing board I'd say. DBus does not propagate over the X11 connection, so it cannot be used for a central UI function like this. You need to use something more standard, like window properties.
Comment 2 Emmanuele Bassi (:ebassi) 2013-05-16 09:59:49 UTC
even if IPC is all that X11 does, these days, it does so in a pretty poor way.

it'd be much more appropriate to fix SSH to forward the DBus cookie and session, as basically everything depends on DBus, these days, so even if you can get the menu running, other things will most likely break — like remote volumes operations via GVFS, which (unsurprisingly) uses DBus, and most definitely won't be using X11 properties for that; or like hotplug volumes detection, which uses udisk, which uses DBus.
Comment 3 Pierre Ossman 2013-05-16 10:10:17 UTC
Possibly, but that's not going to happen anytime soon. So if DBus is considered a critical component of GTK and/or Gnome, then applications should simply refuse to start without it rather than opening in some half-assed broken way. Or DBus is considered non-critical and should only be used for non-essential functionality.
Comment 4 Peter Åstrand 2013-05-16 10:20:27 UTC
(In reply to comment #2)
> even if IPC is all that X11 does, these days, it does so in a pretty poor way.
> 
> it'd be much more appropriate to fix SSH to forward the DBus cookie and
> session, as basically everything depends on DBus, these days, so even if you
> can get the menu running, other things will most likely break — like remote
> volumes operations via GVFS, which (unsurprisingly) uses DBus, and most
> definitely won't be using X11 properties for that; or like hotplug volumes
> detection, which uses udisk, which uses DBus.

Nobody expects that remote volumes should be available when using X11 forwarding. However, as Pierre points out, one would expect that basic GUI functionality such as menus works...

Please also note that you cannot assume that SSH is being used. X11 forwarding is used in many other contexts as well.
Comment 5 Matthias Clasen 2014-08-21 01:22:48 UTC

*** This bug has been marked as a duplicate of bug 671802 ***