mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Merged changed pkg.m4 from edelib
ede-panel has alternative way of calling ede-about dialog Dumped SettingsApplicator.* code from evoke. They are replaced with ede-settings-apply script which should call all programs that needs to apply stored settings. This will reduce code entropy evoke will call ede-settings-apply at the startup ede-bell-conf modified to use "--apply" arg and to apply known settings ede-desktop will start icon exec path via ede-launch Fixed freebsd specific code in ede-panel's battery code
This commit is contained in:
@ -19,10 +19,13 @@
|
||||
#include <stdio.h>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/x.H>
|
||||
#include <edelib/Run.h>
|
||||
|
||||
#include "EvokeService.h"
|
||||
#include "Autostart.h"
|
||||
|
||||
EDELIB_NS_USING(run_async)
|
||||
|
||||
#define FOREVER 1e20
|
||||
#define LOCK_FILE "/tmp/.evoke.lock"
|
||||
|
||||
@ -104,8 +107,8 @@ int main(int argc, char** argv) {
|
||||
return 0;
|
||||
|
||||
if(!service->setup_lock(LOCK_FILE)) {
|
||||
printf("Either another evoke instance is running or I can't create lock file\n");
|
||||
printf("If program abnormaly crashed before, just remove '%s' and start it again\n", LOCK_FILE);
|
||||
printf("*** Either another evoke instance is running or I can't create lock file.\n");
|
||||
printf("*** If program abnormaly crashed before, just remove '%s' and start it again.\n", LOCK_FILE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -134,6 +137,10 @@ int main(int argc, char** argv) {
|
||||
PropertyChangeMask | SubstructureNotifyMask | ClientMessage);
|
||||
Fl::add_handler(xmessage_handler);
|
||||
|
||||
/* run applicator for settings; it must be done after manager is fully on */
|
||||
if(do_startup)
|
||||
run_async("ede-settings-apply");
|
||||
|
||||
service->start();
|
||||
|
||||
while(service->running()) {
|
||||
|
Reference in New Issue
Block a user