From owner-freebsd-ports@FreeBSD.ORG Thu Feb 23 02:31:13 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 18B1E106566B for ; Thu, 23 Feb 2012 02:31:13 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-197-151.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id BF6F41501BC; Thu, 23 Feb 2012 02:31:12 +0000 (UTC) Message-ID: <4F45A4F0.2090802@FreeBSD.org> Date: Wed, 22 Feb 2012 18:31:12 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Rainer Hurling References: <4F3F94C5.5020005@gwdg.de> <4F4021CF.9030503@FreeBSD.org> <4F409850.2010404@gwdg.de> <4F453843.3030805@gwdg.de> In-Reply-To: <4F453843.3030805@gwdg.de> X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: multipart/mixed; boundary="------------020700010206070508010403" Cc: wmaker-dev@lists.windowmaker.info, freebsd-ports@freebsd.org Subject: Re: x11-wm/windowmaker: saving session not possible any more X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: wmaker-dev@lists.windowmaker.info List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 02:31:13 -0000 This is a multi-part message in MIME format. --------------020700010206070508010403 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Rainer, I'm cc'ing the wmaker-dev list, please follow up there rather than freebsd-ports till we get this resolved. On 02/22/2012 10:47, Rainer Hurling wrote: > it seems I found a workaround for getting the session restored after > restarting windowmaker. I took a look at this and got some very odd results. First, using stock windowmaker, I started, did a 'clear session', made sure everything was closed, then exited with the save session box checked. Then I started a few apps, exited with save session checked, and when I restarted it brought the session back. Then I used the attached patch to see the values of those variables you mentioned ... both were "(null)" as expected, and restoring the session continued to work. At this point I got creative and started playing with various combinations of 'clear session' and saving or not saving my session, and managed to get windomaker into a state where it would fail when started and bring up the dialog that gave the option to restart, start another wm, or dump a core file. Still not sure what was happening there, and the core wasn't particularly useful. Now that I think about it, I suspect that if I had tried 'wmaker -norestore' it would have worked ... What I suggest you do is add the attached to windowmaker/files (rename to patch-debug) and build it without your change. Then run startx and check the terminal. Try doing what I did above (clear session, exit w/save, startx, run some stuff, exit w/save, startx) and see if it works. If it doesn't, check the values of those 2 knobs in the printout on the terminal and let us know what's going on. hth, Doug -- It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ --------------020700010206070508010403 Content-Type: text/plain; name="nopatch-debug" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="nopatch-debug" --- src/startup.c.orig 2012-02-22 16:25:30.000000000 -0800 +++ src/startup.c 2012-02-22 16:16:47.000000000 -0800 @@ -760,6 +760,8 @@ /* restore saved menus */ wMenuRestoreState(wScreen[j]); +wmessage("restarting: %s, norestore: %s\n", wPreferences.flags.restarting, wPreferences.flags.norestore); + /* If we're not restarting, restore session */ if (wPreferences.flags.restarting == 0 && !wPreferences.flags.norestore) wSessionRestoreState(wScreen[j]); --------------020700010206070508010403--