Now etip will correctly setup autostart even if etip.desktop wasn't existed before

This commit is contained in:
Sanel Zukan 2008-08-25 13:39:09 +00:00
parent 9650807d55
commit e7789fa31e
2 changed files with 2 additions and 4 deletions

View File

@ -125,12 +125,10 @@ void write_autostart_stuff(void) {
bool show_at_startup = check_button->value(); 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())) 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 // 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_hidden(show_at_startup);
conf.set_name("Etip"); conf.set_name("Etip");
conf.set_exec("etip"); conf.set_exec("etip");