mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Now etip will correctly setup autostart even if etip.desktop wasn't existed before
This commit is contained in:
parent
9650807d55
commit
e7789fa31e
@ -1,2 +1,2 @@
|
|||||||
[etip]
|
[etip]
|
||||||
Path = tips/ede
|
Path = tips/ede
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user