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 796006 - user config dir is localized
user config dir is localized
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: 2018-05-10 15:41 UTC by Changwoo Ryu
Modified: 2018-05-22 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Changwoo Ryu 2018-05-10 15:41:30 UTC
I found that the rygel config dir name is localized in my ~/.config/ dir. I belive this is not intended.

    $ ls -l ~/.config/라이겔/
    합계 32
    -rw-r--r-- 1 changwoo changwoo 2408  5월  1 09:45 MediaExport-v1.xml
    -rw-r--r-- 1 changwoo changwoo 2428  5월  1 09:45 MediaExport-xbox.xml
    -rw-r--r-- 1 changwoo changwoo 2408  5월  1 09:45 MediaExport.xml
    -rw-r--r-- 1 changwoo changwoo 2185  5월  1 09:45 Playbin-v1.xml
    -rw-r--r-- 1 changwoo changwoo 2185  5월  1 09:45 Playbin.xml
    -rw-r--r-- 1 changwoo changwoo 2297  2월 11 22:25 Tracker-v1.xml
    -rw-r--r-- 1 changwoo changwoo 2317  2월 11 22:25 Tracker-xbox.xml
    -rw-r--r-- 1 changwoo changwoo 2297  2월 11 22:25 Tracker.xml
    $

Rygel is using GLib.Environment.get_application_name() for making this path but GLib.Environment.get_application_name() returns localized application name. In src/librygel-core/rygel-root-device-factory.vala:

        /* We store the modified descriptions in the user's config dir */
        var config_dir = Environment.get_user_config_dir ();
        this.ensure_dir_exists (config_dir);
        this.desc_dir = Path.build_filename (config_dir,
                                             Environment.get_application_name ());
        this.ensure_dir_exists (this.desc_dir);

How about using get_prgname() instead, or just hard-coded "rygel"?
Comment 1 GNOME Infrastructure Team 2018-05-22 13:00:30 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/118.