trouble with trunk on Fedora 17

Asked by D. Hugh Redelmeier

I grabbed the trunk today from bzr and built it on my Fedora 17 system. Reason? the version in the Fedora repos (simple-scan-3.4.1-1.fc17) is old and buggy.

I also grabbed the Fedora source RPM and looked at the .spec file to figure out build dependencies.

Then I built as per the README.md. The build seemed fine. But when I run it:

$ ./install/bin/simple-scan --debug
[+0.04s] DEBUG: simple-scan.vala:582: Starting Simple Scan 3.6.0, PID=12918
[+0.04s] DEBUG: Connecting to session manager
[+0.11s] WARNING: g_object_set_valist: invalid object type `GtkAdjustment' for value type `GtkWidget'
[+0.12s] ERROR: Settings schema 'org.gnome.SimpleScan' does not contain a key named 'brightness'
Trace/breakpoint trap (core dumped)

I don't know what that means. Where are these settings? Why are they indigestible? What should I do to make it work?

Question information

Language:
English Edit question
Status:
Answered
For:
Simple Scan Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Nagel (nailor) said :
#1

i converted it to a bug report. i gets more attention that way. probably Robert has to comment.

Revision history for this message
D. Hugh Redelmeier (hugh-mimosa) said :
#2

Thanks, Michael.

Since I'm a newbie at this, I expect that the problem is what I did, not the code. That's why I didn't call it a bug. I welcome you doing that.

Revision history for this message
Robert Ancell (robert-ancell) said :
#3

Hi Hugh,

This is due to the way gsettings works - you need to use the schema from the compiled source not the one installed on your system.

The way I do this is:
$ ./autogen.sh --prefix=`pwd`/install
$ make
$ make install
$ XDG_DATA_DIRS=$PWD/install/share/:$XDG_DATA_DIRS ./src/simple-scan

It's annoying that gsettings crashes if the key can't be found, but there's no way for us to catch that in the Simple Scan code. :(

Can you help with this problem?

Provide an answer of your own, or ask D. Hugh Redelmeier for more information if necessary.

To post a message you must log in.