gnome-tweak-tool 3.10.1-0 fails to launch in Ubuntu and Edubuntu

Bug #1266307 reported by Erick Brunzell
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GNOME Tweaks
Fix Released
Medium
Ubuntu GNOME
Fix Released
Undecided
Unassigned

Bug Description

I'm testing gnome 3.10 packages from the gnome 3 PPA and I notice that the latest version of gnome-tweak-tool fails to launch if used in Ubuntu or Edubuntu. Trying to launch from terminal says this:

WARNING : Shell not installed or running
INFO : GSettings missing key org.gnome.nautilus.desktop (key computer-icon-visible)
WARNING : Shell not running
None
INFO : GSetting missing org.gnome.mutter
INFO : GSetting missing org.gnome.mutter
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/app.py", line 39, in do_activate
    self.win = Window(self, model)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweakview.py", line 53, in __init__
    self._model.load_tweaks(self)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweakmodel.py", line 125, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_group_shell.py", line 65, in <module>
    sw = StaticWorkspaceTweak(size_group=sg, loaded=_shell_loaded)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_group_shell.py", line 49, in __init__
    default = self.STATUS.keys()[self.STATUS.values().index(self.settings[self.key_name])]
ValueError: None is not in list

It had worked in Ubuntu and Edubuntu even w/o gnome-shell being installed since Quantal and it can be quite useful in flashback mode.

The new version works perfectly in Ubuntu GNOME.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gnome-tweak-tool 3.10.1-0ubuntu1~saucy1 [origin: LP-PPA-gnome3-team-gnome3]
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic i686
ApportVersion: 2.12.7-0ubuntu3
Architecture: i386
CurrentDesktop: GNOME
Date: Sun Jan 5 18:19:57 2014
InstallationDate: Installed on 2013-10-29 (68 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20131021.1)
PackageArchitecture: all
SourcePackage: gnome-tweak-tool
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Erick Brunzell (lbsolost) wrote :
Tim Lunn (darkxst)
Changed in ubuntu-gnome:
milestone: none → trusty
Revision history for this message
Tim Lunn (darkxst) wrote :

Hi Lance,
  Can you file this upstream as well on bugzilla.gnome.org

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I had to create an account ............ first bugzilla bug ever so I hope I did OK:

https://bugzilla.gnome.org/show_bug.cgi?id=721613

Changed in gnome-tweak-tool:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Eglė (egle) wrote :
Download full text (3.4 KiB)

I've installed gnome-tweak-tool (version 3.10.1-0ubuntu1) from ppa:gnome3-team/gnome3 repo on Ubuntu 14.04 and got this error in terminal when tried to launch unter Unity Desktop Shell:

ubuntu@ubuntu:~$ gnome-tweak-tool
WARNING : Shell not installed or running
/usr/lib/python2.7/dist-packages/gtweak/tweakview.py:37: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for mode or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.hsize_group = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
/usr/lib/python2.7/dist-packages/gtweak/tweakview.py:72: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.title = Gtk.Label("")
/usr/lib/python2.7/dist-packages/gtweak/tweakview.py:85: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  lbl = Gtk.Label(_("Tweaks"))
/usr/lib/python2.7/dist-packages/gtweak/widgets.py:486: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  lbl = Gtk.Label(title)
/usr/lib/python2.7/dist-packages/gtweak/gsettings.py:125: PyGIDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for schema or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  Gio.Settings.__init__(self, schema_name)
/usr/lib/python2.7/dist-packages/gtweak/widgets.py:59: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  lbl = Gtk.Label(txt)
WARNING : Shell not running
None
/usr/lib/python2.7/dist-packages/gtweak/widgets.py:314: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for value, lower, upper, step_increment or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  adjustment = Gtk.Adjustment(0, _min, _max, options.get('adjustment_step', 1))
INFO : GSetting missing org.gnome.mutter
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/app.py", line 39, in do_activate
    self.win = Window(self, model)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweakview.py", line 53, in __init__
    self._model.load_tweaks(self)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweakmodel.py", line 125, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak...

Read more...

Changed in ubuntu-gnome:
status: New → Confirmed
status: Confirmed → New
tags: added: edubuntu
Revision history for this message
Tim Lunn (darkxst) wrote :

I just uploaded a fix to gnome3/trusty PPA. Please test and let me know if there are any other bugs, I plan to upload into Trusty proper soon

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Looks good here. In Ubuntu GNOME Trusty I tested the new build in the standard gnome shell, gnome classic, and flashback w/metacity sessions.

Then in Ubuntu I tested the new package in the standard Unity, flashback w/metacity, and flashback w/compiz sessions.

No problem at all but I suppose one could argue that 'gnome-tweak-tool' is not the optimal tool for tweaking Unity???

I did encounter an unrelated problem while testing Unity - if the key sequence for killing X is changed then the logout button does not seem to respond properly. There is no difference in which version of 'gnome-tweak-tool' is used to change that sequence though. I'll follow up on that ASAP.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I ruled out 'gnome-tweak-tool' (or any component of 'gnome-shell' or 'gnome-session-flashback') being related to that problem with Unity not logging out properly after editing the key sequence for killing X by performing a fresh install of Ubuntu Trusty and only installing 'dconf-tools' and then editing the sequence in "org.gnome.desktop.input-sources". Unity just doesn't like to be tweaked in some ways I guess, but this new package should be OK to upload to proposed.

Revision history for this message
Tim Lunn (darkxst) wrote :

thanks for the thorough testing!

the other issue sounds like its a bug in gnome-settings-daemon, file a bug there for that one.

Changed in ubuntu-gnome:
status: New → Fix Released
Revision history for this message
Erick Brunzell (lbsolost) wrote :

@ Tim, I probably won't get around to that until after 12.04.4 is released next Thursday.

But I can assure you that 'gnome-tweak-tool' is in no way involved.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

The problem mentioned in comment #7 finally made it to the top of my to-do list but I can no longer reproduce the issue so no need to file a new bug report ATM :^)

Changed in gnome-tweak-tool:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.