--- app.cpp 2006-01-08 20:04:40.000000000 +0200 +++ app.cpp.new 2006-01-08 19:57:59.000000000 +0200 @@ -110,6 +110,11 @@ // Read configuration and theme cfg.readConf(CFGFILE); + /* Read daemon_mode form CFGFILE if -d (daemonmode = false ) option + is not passed */ + if (!daemonmode) { + daemonmode = Cfg::string2int(cfg.getOption("daemon_mode").c_str()); + } string themebase = ""; string themefile = ""; string themedir = ""; --- slim.conf 2006-01-08 20:04:40.000000000 +0200 +++ slim.conf.new 2006-01-08 20:04:38.000000000 +0200 @@ -49,3 +49,6 @@ # Log file logfile /var/log/slim.log + +# Set daemon mode. Default on. off = 0 ; on = 1 +daemon_mode 1 --- cfg.cpp 2006-01-08 20:04:40.000000000 +0200 +++ cfg.cpp.new 2006-01-08 20:00:32.000000000 +0200 @@ -38,6 +38,9 @@ options.insert(option("shutdown_msg","The system is halting...")); options.insert(option("reboot_msg","The system is rebooting...")); options.insert(option("sessions","wmaker,blackbox,icewm")); + /* Add new CFGFILE option daemon_mode for setting daemon mode + from CFGFILE*/ + options.insert(option("daemon_mode","1")); // Theme stuff options.insert(option("input_panel_x","50%"));