[rygel] core: Make symlink instead of copying desktop file
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Make symlink instead of copying desktop file
- Date: Fri, 12 Jun 2009 12:23:04 -0400 (EDT)
commit a30b7c7795a96c30695c65f53e411bc874af9ffc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jun 8 16:45:05 2009 +0300
core: Make symlink instead of copying desktop file
src/rygel/rygel-configuration.vala | 5 ++---
1 files 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]