"No such schema 'org.gtk.Settings.Debug'" error upon trying to activate GTKInspector shortcuts

Bug #1523929 reported by Wise Melon
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
New
Undecided
Unassigned

Bug Description

I have been following the Ubuntu GNOME newcomers guide, and in the GTKInspector section (https://wiki.gnome.org/Projects/GTK%2B/Inspector) it says:

    "To enable the debugger, either start your app with GTK_DEBUG=interactive in your environment, or run gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true and launch the debugger with the Control-Shift-I or Control-Shift-D keyboard shortcuts."

However, upon running that code I just get this error:

No such schema 'org.gtk.Settings.Debug'

And the keyboard shortcuts don't work... I have checked in "org.gtk.Settings" and there is no "Debug" section.

---

OS Information:

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 15.10
    Release: 15.10
    Codename: wily
    Flavour: GNOME
    GNOME Version: 3.18

Package Information:

    libgtk-3-0:
      Installed: 3.18.5-1ubuntu2~wily1
      Candidate: 3.18.5-1ubuntu2~wily1
      Version table:
     *** 3.18.5-1ubuntu2~wily1 0
            500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
            100 /var/lib/dpkg/status
         3.16.7-0ubuntu3 0
            500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

    libgtk-3-dev:
    Installed: 3.18.5-1ubuntu2~wily1
    Candidate: 3.18.5-1ubuntu2~wily1
      Version table:
     *** 3.18.5-1ubuntu2~wily1 0
            500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
            100 /var/lib/dpkg/status
         3.16.7-0ubuntu3 0
            500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, the schemas is part of libgtk-3-dev you need to install that binary

Changed in gtk+3.0 (Ubuntu):
status: New → Invalid
importance: Undecided → Low
Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

I already have that package installed.

Changed in gtk+3.0 (Ubuntu):
status: Invalid → New
Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

So clearly it does not properly provide the schemas in that package and that is probably where the bug is.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the Ubuntu package has that schemas and works fine, you might have an issue with the Ubuntu GNOME ppa then, closing the Ubuntu side and letting the GNOME remix team handle it instead

affects: gtk+3.0 (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Invalid
Revision history for this message
Tim Lunn (darkxst) wrote :

The schemas are definitely there in the libgtk-3-dev package from the ppa, it is after all a direct backport/copy from the xenial archives.

Are you sure that package is installed?

Changed in ubuntu-gnome:
status: New → Incomplete
Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

@Tim, well, when I run the command "apt-cache policy libgtk-3-dev" I get this output:

    libgtk-3-dev:
    Installed: 3.18.5-1ubuntu2~wily1
    Candidate: 3.18.5-1ubuntu2~wily1
      Version table:
     *** 3.18.5-1ubuntu2~wily1 0
            500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
            100 /var/lib/dpkg/status
         3.16.7-0ubuntu3 0
            500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

Changed in ubuntu-gnome:
status: Incomplete → New
description: updated
Revision history for this message
Tim Lunn (darkxst) wrote :

Do you have this file?

/usr/share/glib-2.0/schemas/org.gtk.Settings.Debug.gschema.xml

If so then try:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

I have that file upon running the command which you provided it now has the Debug section!

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

That command should be run automatically when you installed libgtk-3-dev (or any other package containing schemas). So I guess the real question here is why it did not trigger it when you installed. I am curious if it is reproducible can you try removing libgtk-3-dev (check the schema key has gone away), then reinstall libgtk-3-dev and check if the key is back (without that command)

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

@Tim, well, when I remove (or even purge) that package the Debug section still remains, though all of its information is gone and only one setting remains... So I'm not sure if it is a fair test if some of it stays... But upon reinstalling that package again the section does fully come back.

no longer affects: ubuntu
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.