From a30b7c7795a96c30695c65f53e411bc874af9ffc Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 8 Jun 2009 16:45:05 +0300 Subject: [PATCH] core: Make symlink instead of copying desktop file --- src/rygel/rygel-configuration.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rygel/rygel-configuration.vala b/src/rygel/rygel-configuration.vala index dc4ea0e..85b349b 100644 --- a/src/rygel/rygel-configuration.vala +++ b/src/rygel/rygel-configuration.vala @@ -71,7 +71,7 @@ public class Rygel.Configuration : GLib.Object { (uint32) 0, out res); - // Then copy the desktop file to user's autostart dir + // Then symlink the desktop file to user's autostart dir var source_path = Path.build_filename ( BuildConfig.DESKTOP_DIR, "rygel.desktop"); @@ -79,10 +79,9 @@ public class Rygel.Configuration : GLib.Object { Environment.get_user_config_dir (), "autostart", "rygel.desktop"); - var source = File.new_for_path (source_path); var dest = File.new_for_path (dest_path); - source.copy (dest, FileCopyFlags.OVERWRITE, null, null); + dest.make_symbolic_link (source_path, null); this.set_bool ("general", ENABLED_KEY, value); } catch (DBus.Error err) { -- 2.7.4