[rygel] core: Use application name for file storage dir



commit 4bd3685d1411d8856e62d137c4742f6ea6696dcd
Author: Jens Georg <mail jensge org>
Date:   Thu Jun 14 12:26:49 2012 +0200

    core: Use application name for file storage dir
    
    Don't hardcode "Rygel" but let the application using librygel-core
    decide by setting its application name.

 src/rygel/rygel-root-device-factory.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index ed66497..190da17 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -59,7 +59,8 @@ public class Rygel.RootDeviceFactory {
         /* 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, "Rygel");
+        this.desc_dir = Path.build_filename (config_dir,
+                                             Environment.get_application_name ());
         this.ensure_dir_exists (this.desc_dir);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]