Re: GNOME Settings Schemas - How are they searched for?

2016-10-24 Thread 宋文武
Pjotr Prins  writes:

> I installed the same version on Guix on top of Debian - but I use
> i3wm. No dbus - so maybe that is the root of the problem?
>

GSettings search its 'gschemas.compiled' files under environment
variable `$GSETTINGS_SCHEMA_DIR` and then under each directory of
`$XDG_DATA_DIRS/share/glib-2.0/schemas`.  The file can contain multiple
entries, compiled from XML gsettings schemas files provided by
applications.

We don't have profile hook to build 'gschemas.compiled', so the one in
profile only can contains one package's schemas, which is not helpful as
schemas from other (particularly gtk+) are required too.

Current way to handle this is to wrap binaries using gsettings with
XDG_DATA_DIRS, as does by `glib-or-gtk-build-system`.



Re: GNOME Settings Schemas - How are they searched for?

2016-10-24 Thread Pjotr Prins
I installed the same version on Guix on top of Debian - but I use
i3wm. No dbus - so maybe that is the root of the problem?

Pj.

On Sun, Oct 23, 2016 at 02:02:52PM -0500, ren...@openmailbox.org wrote:
> Hello,
> 
> I use gnumeric-1.12.31 on GNOME, and i don't have this problem.
> 
> > I am hitting a similar problem with gnumeric. Install latest, open
> > spreadsheet, hit 'safe as' and you get:
> > 
> > (gnumeric:1974): GLib-GIO-ERROR **: Settings schema
> > 'org.gtk.Settings.FileChooser' is not installed
> > 
> > (bit annoying as some work got lost) but easy to reproduce.
> > 
> > This issue suggests a solution:
> > 
> > 
> > http://stackoverflow.com/questions/9678301/can-not-use-gtk3-filechooser-on-mac-osx#9684626
> > 
> > i.e., the builder needs to run glib-compile-schemas [path to
> > org.gtk.Settings.FileChooser.gschema]. There is a compiled schema in
> > the path, but maybe not for FileChooser and others.
> 

-- 



Re: GNOME Settings Schemas - How are they searched for?

2016-10-23 Thread rennes

Hello,

I use gnumeric-1.12.31 on GNOME, and i don't have this problem.


I am hitting a similar problem with gnumeric. Install latest, open
spreadsheet, hit 'safe as' and you get:

(gnumeric:1974): GLib-GIO-ERROR **: Settings schema
'org.gtk.Settings.FileChooser' is not installed

(bit annoying as some work got lost) but easy to reproduce.

This issue suggests a solution:


http://stackoverflow.com/questions/9678301/can-not-use-gtk3-filechooser-on-mac-osx#9684626

i.e., the builder needs to run glib-compile-schemas [path to
org.gtk.Settings.FileChooser.gschema]. There is a compiled schema in
the path, but maybe not for FileChooser and others.




Re: GNOME Settings Schemas - How are they searched for?

2016-10-23 Thread Pjotr Prins
On Mon, Sep 26, 2016 at 01:35:04AM +0200, Danny Milosavljevic wrote:
> > (gnome-ring:711): GLib-GIO-ERROR **: Settings schema 
> > 'org.gnome.Evolution.DefaultSources' is not installed
> > (gnome-calendar:6793): GLib-GIO-ERROR **: Settings schema 
> > 'org.gnome.shell.calendar' is not installed
> > ** (process:6859): WARNING **: Failed to access calendar configuration: 
> > Error calling StartServiceByName for org.gnome.evolution.dataserver.Sources
> > (gnome-calendar:6859): GLib-GIO-ERROR **: Settings schema 
> > 'org.gnome.shell.calendar' is not installed
> 
> Hmmm... I don't use GNOME - so no idea. I have to defer to people more 
> knowledgeable about it. How does a GNOME program find other program's 
> settings schemas in Guix? Also it seems it's trying to use dbus (?) in order 
> to start the evolution data server. How is that searched for?

I am hitting a similar problem with gnumeric. Install latest, open
spreadsheet, hit 'safe as' and you get:

(gnumeric:1974): GLib-GIO-ERROR **: Settings schema 
'org.gtk.Settings.FileChooser' is not installed

(bit annoying as some work got lost) but easy to reproduce.

This issue suggests a solution:

  
http://stackoverflow.com/questions/9678301/can-not-use-gtk3-filechooser-on-mac-osx#9684626

i.e., the builder needs to run glib-compile-schemas [path to
org.gtk.Settings.FileChooser.gschema]. There is a compiled schema in
the path, but maybe not for FileChooser and others.

Pj.
-- 



Fw: GNOME Settings Schemas - How are they searched for?

2016-09-26 Thread Danny Milosavljevic
Hi,

> I was not sure how to handle this properly.  The package libring
> provides a program 'dring', which is a daemon that, as far as I
> understand, does all the communication with peers on the internet.  So
> in order to place a call, one first needs to run 'dring &' and then
> start the ring-client-gnome.  If the ring daemon is not running, then
> ring-client-gnome won't do anything useful, it will just error out on
> startup.
> 
> Looking at the manual, this does not justify propagation.  My intention
> was that people can just install ring-client-gnome in a profile and it
> will work.  If libring is not propagated, it will also need to be
> installed by hand.  

I think it's fine to be propagated in this case - but let's see what the others 
say.

> Is there a good way to specify this kind of runtime requirement?  I
> could also just move it to 'inputs' and put a hint in the description
> that libring should be installed alongside ring-client-gnome.  

Good question.

> (gnome-ring:711): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.Evolution.DefaultSources' is not installed
> (gnome-calendar:6793): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.shell.calendar' is not installed
> ** (process:6859): WARNING **: Failed to access calendar configuration: Error 
> calling StartServiceByName for org.gnome.evolution.dataserver.Sources
> (gnome-calendar:6859): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.shell.calendar' is not installed  

Hmmm... I don't use GNOME - so no idea. I have to defer to people more 
knowledgeable about it. How does a GNOME program find other program's settings 
schemas in Guix? Also it seems it's trying to use dbus (?) in order to start 
the evolution data server. How is that searched for?



GNOME Settings Schemas - How are they searched for?

2016-09-25 Thread Danny Milosavljevic
Hi,

> I was not sure how to handle this properly.  The package libring
> provides a program 'dring', which is a daemon that, as far as I
> understand, does all the communication with peers on the internet.  So
> in order to place a call, one first needs to run 'dring &' and then
> start the ring-client-gnome.  If the ring daemon is not running, then
> ring-client-gnome won't do anything useful, it will just error out on
> startup.
> 
> Looking at the manual, this does not justify propagation.  My intention
> was that people can just install ring-client-gnome in a profile and it
> will work.  If libring is not propagated, it will also need to be
> installed by hand.

I think it's fine to be propagated in this case - but let's see what the others 
say.

> Is there a good way to specify this kind of runtime requirement?  I
> could also just move it to 'inputs' and put a hint in the description
> that libring should be installed alongside ring-client-gnome.

Good question.

> (gnome-ring:711): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.Evolution.DefaultSources' is not installed
> (gnome-calendar:6793): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.shell.calendar' is not installed
> ** (process:6859): WARNING **: Failed to access calendar configuration: Error 
> calling StartServiceByName for org.gnome.evolution.dataserver.Sources
> (gnome-calendar:6859): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.shell.calendar' is not installed

Hmmm... I don't use GNOME - so no idea. I have to defer to people more 
knowledgeable about it. How does a GNOME program find other program's settings 
schemas in Guix? Also it seems it's trying to use dbus (?) in order to start 
the evolution data server. How is that searched for?