Missing gconf schema

Bug #1026807 reported by jhansonxi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
psensor (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu 12.04 (Precise Pangolin) i386 / Linux Mint 13 (maya)
psensor 0.6.2.16-1ubuntu4

Encountered this while trying to configure system-wide defaults with gconftool/gsettings. To test:

apt-get install psensor && dpkg-query -L psensor | grep -q '/usr/share/gconf/schema/' || echo "YES IT IS STILL MISSING A SCHEMA"

File listing:
dpkg-query -L psensor
/.
/etc
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/psensor.desktop
/usr
/usr/bin
/usr/bin/psensor
/usr/share
/usr/share/applications
/usr/share/applications/psensor.desktop
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/scalable/apps
/usr/share/icons/hicolor/scalable/apps/psensor.svg
/usr/share/icons/hicolor/scalable/apps/psensor_hot.svg
/usr/share/icons/hicolor/scalable/apps/psensor_normal.svg
/usr/share/icons/hicolor/14x14
/usr/share/icons/hicolor/14x14/apps
/usr/share/icons/hicolor/14x14/apps/psensor.png
/usr/share/icons/hicolor/16x16
/usr/share/icons/hicolor/16x16/apps
/usr/share/icons/hicolor/16x16/apps/psensor.png
/usr/share/icons/hicolor/22x22
/usr/share/icons/hicolor/22x22/apps
/usr/share/icons/hicolor/22x22/apps/psensor.png
/usr/share/icons/hicolor/24x24
/usr/share/icons/hicolor/24x24/apps
/usr/share/icons/hicolor/24x24/apps/psensor.png
/usr/share/icons/hicolor/32x32
/usr/share/icons/hicolor/32x32/apps
/usr/share/icons/hicolor/32x32/apps/psensor.png
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/psensor.png
/usr/share/icons/hicolor/48x48/apps/psensor_hot.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/psensor.png
/usr/share/icons/ubuntu-mono-dark
/usr/share/icons/ubuntu-mono-dark/status
/usr/share/icons/ubuntu-mono-dark/status/22
/usr/share/icons/ubuntu-mono-dark/status/22/psensor_normal.svg
/usr/share/icons/ubuntu-mono-dark/status/22/psensor_hot.svg
/usr/share/icons/ubuntu-mono-dark/apps
/usr/share/icons/ubuntu-mono-dark/apps/22
/usr/share/icons/ubuntu-mono-dark/apps/22/psensor.svg
/usr/share/icons/ubuntu-mono-light
/usr/share/icons/ubuntu-mono-light/status
/usr/share/icons/ubuntu-mono-light/status/22
/usr/share/icons/ubuntu-mono-light/status/22/psensor_normal.svg
/usr/share/icons/ubuntu-mono-light/status/22/psensor_hot.svg
/usr/share/psensor
/usr/share/psensor/psensor-pref.glade
/usr/share/psensor/sensor-edit.glade
/usr/share/doc
/usr/share/doc/psensor
/usr/share/doc/psensor/copyright
/usr/share/doc/psensor/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/psensor.1.gz

Related branches

Changed in psensor (Ubuntu):
status: New → Opinion
Revision history for this message
Jean-Philippe Orsini (jfi) wrote :

IIRC gconf schema requires to declare all keys which is not possible because Psensor is storing the settings of each sensor under /app/psensor/sensors/[SENSOR_UID]/*.
That's also the reason why gsettings is to used (https://bugzilla.gnome.org/show_bug.cgi?id=622126).

Except if I miss some point about gconf schema, I am afraid that this issue will never be 'fixed'.

Changed in psensor (Ubuntu):
status: Opinion → New
Revision history for this message
jhansonxi (jhansonxi) wrote :

I'm not sure what the Debian or Ubuntu policy is regarding gconf schemas. I think that it should only need to include keys that are used when it is installed. Since it doesn't have any sensors defined until it is executed, and they are system-specific, I don't see why you would need to worry about including the sensor entries in the schema.

Revision history for this message
Jean-Philippe Orsini (jfi) wrote :
Revision history for this message
Jean-Philippe Orsini (jfi) wrote :

I have commited debian and autotools files for the schema installation in the SVN trunk. The .deb appears to correctly install and desinstall the schema. I have only do tests with gconf-editor, I don't really know how to "configure system-wide defaults with gconftool/gsettings".

You can give it a try by using the daily ppa:
sudo apt-add-repository ppa:jfi/psensor-daily-trunk
sudo apt-get update
sudo apt-get install psensor

Binaries should be available in a couple of hours (psensor - 0.7.0.0-0~558~quantal1)

Revision history for this message
jhansonxi (jhansonxi) wrote :

Thanks. I'll give it a try in a day or two.

Example of setting system defaults for Gnome Terminal to increase the number of scrollback lines (Ubuntu 10.04, Lucid Lynx):

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--apply-schema /usr/share/gconf/schemas/gnome-terminal.schemas \
/apps/gnome-terminal/profiles/Default/scrollback_lines

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--set --type=int /apps/gnome-terminal/profiles/Default/scrollback_lines 2048

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package psensor - 0.7.0.3-1ubuntu1

---------------
psensor (0.7.0.3-1ubuntu1) raring; urgency=low

  * Merge from Debian unstable, remaining Ubuntu changes:
   - Build depend on nvidia-settings build-dep on i386 and amd64.
   - Build depend on libunity-dev and libappindicator3-dev for Unity support.

psensor (0.7.0.3-1) unstable; urgency=low

  * New upstream release
      + added gconf schema. (LP: #1026807)
      + fixed systray and application indicator visible at the
        same time. (LP: #971098)
      + fixed wrong background color, get the background color of
        the window and not the canvas widget. (LP: #973122)
      + removed hicolor/48x48/psensor_hot.png. (LP: #1029065)
      + added degree sign for celcius. (LP: #1021900)
      + fixed hide window on startup for gnome-shell. (Closes: #676361)
  * debian/control
      + added builddep to libatasmart-dev.
      + switched to debhelper 9.
  * debian/psensor.install
      + added gconf schema.
  * debian/rules
      + set GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL to 1 to avoid gconf
        schema installation during package build.
  * debian/compat
      + switched to debhelper 9, fixes hardening-no-relro and
        hardening-no-fortify-functions lintian warnings.
 -- Andrew Starr-Bochicchio <email address hidden> Sun, 27 Jan 2013 19:04:44 -0500

Changed in psensor (Ubuntu):
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.