user config dir is localized
@cwryu
Submitted by Changwoo Ryu Link to original bug (#796006)
Description
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"?
Version: git master