On Sun, Mar 04, 2012 at 10:55:40AM +0100, Rainer Hurling wrote:
>
> --- src/startup.c.orig 2012-02-14 20:36:01.000000000 +0100
> +++ src/startup.c 2012-03-04 08:29:04.000000000 +0100
> @@ -761,9 +761,10 @@
> wMenuRestoreState(wScreen[j]);
>
> /* If we're not restarting, restore session */
> - if (wPreferences.flags.restarting == 0 &&
> !wPreferences.flags.norestore)
> + if (wPreferences.flags.restarting == 0 &&
> !wPreferences.flags.norestore) {
> wSessionRestoreState(wScreen[j]);
> -
> + wmessage("restarting: %d, norestore: %d\n",
> wPreferences.flags.restarting, wPreferences.flags.norestore);
> + }
> if (!wPreferences.flags.noautolaunch) {
> /* auto-launch apps */
> if (!wPreferences.flags.nodock && wScreen[j]->dock) {
This is rather useless, as it will always print "restarting: 0,
norestore: 0" since any other values will cause it to not reach the
wmessage line. Don't include the wmessage call within the if block.
> When starting wmaker, some of these wmessages write onto the
> console. I summarized them in the following lines:
It would be best to just post the entire wmaker-related portion of the
log, instead of trying to summarize.
> /usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: (null)
> /usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: (null)
> /usr/local/bin/wmaker(main(main.c:552)): Arg 1 is --for-real
> /usr/local/bin/wmaker(real_main(main.c:632)): Got --for-real, set
> restarting = 0
I guess this is from the initial run? But where is the log entry from
startup.c?
> /usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: (null)
> /usr/local/bin/wmaker(main(main.c:552)): Arg 1 is --for-real=
> /usr/local/bin/wmaker(real_main(main.c:635)): Got --for-real=, set
> restarting = 1
> /usr/local/bin/wmaker(StartUp(startup.c:766)): norestore: 0
And then here you picked "Restart" from the menu, or else wmaker
crashed? But that log entry from startup.c doesn't match what should be
produced from the patch you attached.
> Lines like this are only created on startup of wmaker. When I try to
> save a session, clear a session or restart wmaker, nothing happens
> any more with our wmessages.
Err, you should get messages when you restart wmaker. Unless somehow the
restart is picking up a different wmaker binary (e.g. /usr/bin instead
of /usr/local/bin or something).
--
To unsubscribe, send mail to [email protected].