From e7789fa31e97ad8fc48c1c524df8ab0d6bd91ef0 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 25 Aug 2008 13:39:09 +0000 Subject: [PATCH] Now etip will correctly setup autostart even if etip.desktop wasn't existed before --- etip/etip.conf | 2 +- etip/etip.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/etip/etip.conf b/etip/etip.conf index 9e9cbd7..76a9c71 100644 --- a/etip/etip.conf +++ b/etip/etip.conf @@ -1,2 +1,2 @@ [etip] - Path = tips/ede +Path = tips/ede diff --git a/etip/etip.cpp b/etip/etip.cpp index 2f63ad1..96fa9c2 100644 --- a/etip/etip.cpp +++ b/etip/etip.cpp @@ -125,12 +125,10 @@ void write_autostart_stuff(void) { bool show_at_startup = check_button->value(); - // Hm... looks like a bug in edelib. If failed, Config should still be usable if(!conf.load(path.c_str())) - conf.clear(); + conf.create_new(edelib::DESK_FILE_TYPE_APPLICATION); // always write these values so someone does not try to play with us - conf.set_type(edelib::DESK_FILE_TYPE_APPLICATION); conf.set_hidden(show_at_startup); conf.set_name("Etip"); conf.set_exec("etip");