After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683959 - Need better logic for user configuration loading.
Need better logic for user configuration loading.
Status: RESOLVED OBSOLETE
Product: rygel
Classification: Applications
Component: librygel-core
git master
Other Linux
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-13 14:28 UTC by Krzesimir Nowak
Modified: 2018-05-22 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Krzesimir Nowak 2012-09-13 14:28:34 UTC
Right now this is how Rygel looks for configuration:
1) If cmdline parameter for local configuration path is given then:
  a) Looks for global one in sys config dir (~/usr/etc/rygel.conf in jhbuilded env).
  b) If global one is found then it looks for local one in path given by cmdline parameter. At this point loading user config is finished.
2) Otherwise it looks for global one in sys config dir (~/usr/etc/rygel.conf in jhbuilded env).
3) If local is found the it looks for local one in user config dir (~/.config/rygel.conf). At this point loading user config is finished.

If global does not exists then Rygel issues a warning that user configuration could not be loaded. That config actually exists in ~/.config does not matter.

I think that Rygel should do it bit differently:
1) Local conf:
  a) If cmdline param is given then use it to find local conf.
  b) Otherwise look for it in ~/.config.
2) Global conf:
  a) Look for it in sys conf dir.

If local config is found - use it. Otherwise if global config is found - use it. Otherwise issue a warning about configuration being not found.
Comment 1 GNOME Infrastructure Team 2018-05-22 12:36:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rygel/issues/27.