GNOME Bugzilla – Bug 645229
Gimp does not remember single window mode
Last modified: 2011-03-19 18:34:56 UTC
I compiled gimp on the Mac, Snow Leopard, using the latest git master. So far, it seems to work fine. However, when I start the GIMP, it never starts in Single Window Mode even when I selected it in a previous session. The gimprc-file isn't changed either. Also, I'd suggest adding the "single window mode" switch to the preferences dialogue. That's where I first searched for it...
More details: If I manually add "(single-window-mode yes)" to my gimprc, the GIMP *still* does not start in that mode, BUT the menu entry for single window mode gets a check. I then have to click it twice: First to remove the check, i.e., switching to multi window mode, and then a second time to re-switch to single window mode. However, when I then exit the program, the entry (single-window-mode yes) is removed from the gimprc. I suspect there's a minor glitch in the parsing of the option file. I'll try to find it myself, but I am absolutely unfamiliar with the GIMP source code as of yet.
Okay, I see that this is a direct consequence of the session management. I also found the part in the code where it's deliberately deactivated on exit. I suppose what happens is the following: When I manually add (single-window-mode yes) to my gimprc, it really starts in single window mode BUT as the docks aren't properly session-managed, they fly around wherever thy like. That's why it looks like multi-window mode although the entry "single-window mode" is checked. A dirty workaround would be to manually call the single-window activation function after all other stuff is loaded, but the proper way would be to wait until session management is done for the swm. *** This bug has been marked as a duplicate of bug 603848 ***