diff --git a/ede-desktop/ede-desktop.cpp b/ede-desktop/ede-desktop.cpp index 6522042..1c1bb5d 100644 --- a/ede-desktop/ede-desktop.cpp +++ b/ede-desktop/ede-desktop.cpp @@ -113,11 +113,11 @@ static void settings_changed_cb(void* data) { } static void background_conf_cb(Fl_Widget*, void*) { - Desktop::instance()->execute("ede-desktop-conf"); + edelib::run_async("ede-launch ede-desktop-conf"); } static void icons_conf_cb(Fl_Widget*, void*) { - Desktop::instance()->execute("ede-desktop-conf --icons"); + edelib::run_async("ede-launch \"ede-desktop-conf --icons\""); } static int desktop_xmessage_handler(int event) { @@ -923,11 +923,6 @@ void Desktop::dir_watch(const char* dir, const char* changed, int flags) { E_DEBUG(E_STRLOC ": %s changed with %i\n", changed, flags); } -void Desktop::execute(const char* cmd) { - E_ASSERT(cmd != NULL); - edelib::run_async(cmd); -} - int Desktop::handle(int event) { switch(event) { case FL_FOCUS: diff --git a/ede-desktop/ede-desktop.h b/ede-desktop/ede-desktop.h index b120443..336b0f5 100644 --- a/ede-desktop/ede-desktop.h +++ b/ede-desktop/ede-desktop.h @@ -163,8 +163,6 @@ public: void dir_watch(const char* dir, const char* changed, int flags); void dir_watch_on(void) { do_dirwatch = true; } void dir_watch_off(void) { do_dirwatch = false; } - - void execute(const char* cmd); }; #endif