gconf-schemas --unregister not removing empty /apps/appname

Bug #302819 reported by Francesco Fumanti
2
Affects Status Importance Assigned to Milestone
gconf2 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Hello,

Suppose that we have a file called mytesting.schemas with the following content:

<gconfschemafile>
  <schemalist>
    <schema>
      <key>/schemas/apps/my_app/my_key</key>
      <applyto>/apps/my_app/my_key</applyto>
      <owner>my_app</owner>
      <type>int</type>
      <default>42</default>
      <locale name="C">
        <short>A short description of this key</short>
        <long>A longer description here. We can have lots of text
           here, describing what the possible values are, and what
            they mean.
        </long>
      </locale>
    </schema>
    <schema>
      <key>/schemas/apps/my_app/my_other_key</key>
      <applyto>/apps/my_app/my_other_key</applyto>
      <owner>my_app</owner>
      <type>bool</type>
      <default>1</default>
      <locale name="C">
        <short>A short description of this key</short>
        <long>A longer description here. We can have lots of text
      here, describing what the possible values are, and what
          they mean.
        </long>
      </locale>
    </schema>
  </schemalist>
</gconfschemafile>

The following command in the terminal registers the schemas in the gconf database:
sudo gconf-schemas --register /path/to/mytesting.schemas

The following command in the terminal only partially removes the keys from the gconf database:
sudo gconf-schemas --unregister /path/to/mytesting.schemas

In fact, /schemas/apps/my_app and /apps/my_app remain listed in the gconf database.

However, the command "sudo gconf-schemas --register-all" called after the unregister command, makes /schemas/apps/my_app and /apps/my_app disappear from the gconf database.

Should /schemas/apps/my_app and /apps/my_app not already disappear with the gconf-schemas --unregister command?

Cheers

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

thank you for your bug report, did you restart your session or gconf after the unregister? does using gconftool directly work correctly?

Changed in gconf2:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Francesco Fumanti (frafu) wrote :

/schemas/apps/my_app and /apps/my_app remain listed in the gconf-editor even after restarting the session.

Could you please give me the exact gconftool command to use?

I tried for example
sudo gconftool-2 --recursive-unset /apps/my_app
but it did not remove anything.

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

you can look to gconf-schemas to see the command it's called, it seems to be using --makefile-uninstall-rule on the schemas and specify the GCONF_CONFIG_SOURCE directory to use too

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!.

Changed in gconf2:
status: Incomplete → Invalid
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.