[rygel] ui: Ignore two ignorable errors
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] ui: Ignore two ignorable errors
- Date: Fri, 25 Sep 2009 14:32:19 +0000 (UTC)
commit 1ade399993852240d17331bcbf58d663f61a8398
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Sep 25 16:33:16 2009 +0300
ui: Ignore two ignorable errors
src/rygel/rygel-user-config.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index d020ae3..8602089 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -289,7 +289,9 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
// Then symlink the desktop file to user's autostart dir
var source_path = Path.build_filename (BuildConfig.DESKTOP_DIR,
"rygel.desktop");
- dest.make_symbolic_link (source_path, null);
+ try {
+ dest.make_symbolic_link (source_path, null);
+ } catch (IOError.EXISTS err) {}
this.set_bool ("general", ENABLED_KEY, true);
} else {
@@ -297,7 +299,9 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
this.rygel_obj.Shutdown ();
// Then delete the symlink from user's autostart dir
- dest.delete (null);
+ try {
+ dest.delete (null);
+ } catch (IOError.NOT_FOUND err) {}
this.set_bool ("general", ENABLED_KEY, false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]