2013/2/10 PCMan <[email protected]>: > 3. There is no good way to save config file. Normally, we write the > config file on program termination. However, when logging out a > desktop session, the panel is KILLed via SIGKILL, not SIGTERM in some > window managers. That means, we don't have a chance to write the > config file to disk. It's a old problem existed in lxpanel. I want to > solve it in lxpanel2, but I haven't figure out a better way. Writing > the whole config file everytime a tiny config value is changed is > insane, but it's the only reliable way to get every config value > correctly written to disk. :-(
Using GSettings may help you here ? You can split the setttings and only modify the ones which actually change. Since GSettings is included in Glib, it will not bring more external dependency. Regards, Julien Lavergne ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Lxde-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxde-list
