X11 session management. Your geany instances will be saved on logout and restored on login. If you have the same project open in 2+ instances, their project options will become the same after restart (from your last Project -> Properties -> OK). Everything else will be restored as-was, without touching geany.conf and the project files (suspend-resume like).
You should apply the various [hidden] preferences patch. Without it, the hidden preferences will not be saved/restored correctly.
Not compatible with the rewritten load_startup_files patch.
Will be updated at each 100 svn revisions or so.
Geany svn r5874+ includes the various [hidden] preferences patch, so you don't need to apply it.
5874 applies against 0.21 (with some small offsets). But since in modifies configure.in and Makefile.in, you need to copy the m4 directory from a recent svn (say, 5874+), and you'd better apply it before ./configure to spare time for re-configuring.
Unfortunately xfce4-session, which always had problems if 2+ programs want to show dialogs during logout (for example "Save foo?" questions), now can't handle even a single program. If the number of compliant XSMs drops to 0, I'll rewrite sm1 for the legacy protocol. It doesn't dialogs on logout, but is immeasurably simpler to support.
Unfortunately xfce4-session, which always had problems if 2+ programs want to show dialogs during logout (for example "Save foo?" questions), now can't handle even a single program. If the number of compliant XSMs drops to 0, I'll rewrite sm1 for the legacy protocol. It doesn't support dialogs on logout, but is immeasurably simpler to support.
The interaction under xfce4-session is now disabled, until they fix it. So be sure to save your files.
Updated for the new load_startup_files().
On normal (non-sm) exit, only delete the session file if running under Gnome, to preserve permanent sessions.
applies against 1.22
for 2012-12-17+
Support for Geany X11 session management (xsmp) has been discontinued.
First, it was never officially included in Geany, even disabled by default.
Second, only KDE and Xfce (mostly) support xsmp.
Third, there isn't much application support outside KDE.
Fourth, a startup script with wmctrl is faster and more reliable.
Let's hope that Wayland, Mir or whatever will have better SM.