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 696683 - gnome-tweak-tool won't run without GNOME Shell
gnome-tweak-tool won't run without GNOME Shell
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-03-27 10:18 UTC by Adam Dingle
Modified: 2013-03-29 10:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't crash if gnome-shell is not running/installed (7.56 KB, patch)
2013-03-27 11:30 UTC, John Stowers
committed Details | Review

Description Adam Dingle 2013-03-27 10:18:45 UTC
I'm attempting to run gnome-tweak-tool 3.7.4 on Ubuntu 13.04 (Raring).  It crashes on startup:

gi._glib.GError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.Shell' on object at path /org/gnome/Shell

I'm running Ubuntu Unity, not GNOME Shell.

gnome-tweak-tool is very useful, and it would certainly be nice if it would run even in environments where GNOME Shell is not present.

(See also the corresponding Ubuntu bug at https://bugs.launchpad.net/ubuntu-gnome/+bug/1159124 .)
Comment 1 John Stowers 2013-03-27 11:30:58 UTC
Created attachment 239945 [details] [review]
Don't crash if gnome-shell is not running/installed
Comment 2 John Stowers 2013-03-27 11:31:15 UTC
Can you test this patch against master?
Comment 3 Adam Dingle 2013-03-27 11:48:03 UTC
Thanks for the quick fix.  I just tried the patch (on Ubuntu 13.04 with Unity) and it runs!  I do see this on the console:

===
WARNING : Shell not installed or running
WARNING : Shell not running
None
WARNING : Error detecting shell
Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell_extensions.py", line 199 in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available
INFO    : GSettings missing key org.gnome.nautilus.desktop (key computer-icon-visible)
===

Regarding that last line (about org.gnome.nautilus.desktop), I'm running Nautilus 3.7.90.  Perhaps the warning wouldn't occur with a different Nautilus version.

In the tweak tool itself, the Shell section includes the options "Show date in clock" and "Whether the clock shows seconds", which have no effect in Unity.  It might be nice to hide those options when GNOME Shell isn't running.  But that's a small point; as it stands this patch is a great improvement over the current situation (i.e. not running at all).
Comment 4 John Stowers 2013-03-29 10:44:22 UTC
Attachment 239945 [details] pushed as 30f0f84 - Don't crash if gnome-shell is not running/installed