[Geany-devel] session management [was: Usability fix - saving tab state]

Dimitar Zhekov dimitar.zhekov at xxxxx
Wed Jul 11 18:01:21 UTC 2012

On Tue, 10 Jul 2012 14:55:30 -0700
Matthew Brush <mbrush at codebrainz.ca> wrote:

> On Tue, 10 Jul 2012 21:20:55 +0300
> Dimitar Zhekov <dimitar.zhekov at gmail.com> wrote:
> >
> > There is a X11 session management patch on Geany sourceforge patch
> > tracker. Applies against 1.22, but not the newest svn. Not guaranteed
> > to work under GNOME, they always have problems with session support.
> > Won't ask you to save any modified files under Xfce, xfsm is buggy too.
> So it only works in KDE and Unity? (and maybe TWM :)

KDE4 has prefect XSMP support, KDE3 was pretty good, don't know about
Unity. Xfce is OK if you don't have unsaved files.

> Shouldn't bugs be filed against these projects (if not done yet) if they 
> don't support the standard X/Linux session management?

https://bugzilla.xfce.org/show_bug.cgi?id=5379. The latest Xfce has
problems even with a single probram asking whether to save a modified
file, so I had to disable that part.

> AFAIK they all claim to try and support the various standards floating
> around out there.

As of the GNOME guys, they had a lousy support for the legacy (X11R5)
session support, dropped it AFAIK, and then deprecated XSMP in favour
their own session protocol in 2.24. Don't know about GNOME3.

Funny thing, considering that the small Xfce has full support for the
legacy protocol, and it's even supported by gtk+ - for example that's
how Devhelp or Firefox are restarted on login.

> I have no clue about SM, but it seems crazy that it cannot be 
> done. There must be apps out there that work properly cross-desktop, 
> maybe we can copy them?

gedit has the same problems with Xfce. Aside from the kde applications,
there are very few programs with full xsmp support.

> P.S. When logging out/shutting down, what order does it handle Geany 
> instances in? Does it always make sure the first opened instance is the 
> last to get handled so that you don't clobber the open files list for it 
> and stuff?

In no partilular order. Each instance saves it's own file list and
preferences in a separate .conf file, based on the instance xsmp ID.
Neither geany.conf nor the project files are saved - it works as if
you suspend/resume or hybernate/restore (with some exceptions).

You can of course do an Edit -> Preferences -> OK or Project ->
Properties -> OK, that'll save geany.conf or the project file
respectively. You can do that even after logout/login.


On Tue, 10 Jul 2012 21:59:35 -0700
Matthew Brush <mbrush at codebrainz.ca> wrote:

> I pushed it to a "sm" branch[1] on the git repo just now. I haven't 
> really tested it much but it builds and runs fine after a very trivial 
> fix of the Makefile (and wscript) files.

Yes, that's the part that normally breaks.

> It might get more usage/testing/experimenting in a branch on the main 
> repository compared to the sf.net tracker.

That may well be. Though while Geany was on svn, the patches were marked
with the svn release number, and thus very easy to apply, and there
were two or three svn-marked versions on the ML even before that...

The last notable changes were done two years ago. After that it's only
tweaking for specific SM-s, "more strict" xsmp support, which didn't
help (sigh), and updates various Geany changes.

E-gards: Jimmy

More information about the Devel mailing list