Re: Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Tuomo Valkonen
On 2008-11-06, Tuomo Valkonen <[EMAIL PROTECTED]> wrote:
> If one wants a static setup, it's perhaps best to just clean up
> files in .xsession.

Perhaps this needs a clarification: you can put a saved_layout.lua
in ~/.ion3/.  If one doesn't exist in the session directory
(which one can explicitly specify with -session), this one is 
loaded. If you remove the one in the session directory in 
.xsession, restarts should work fine, as the state gets saved
over restarts.

(It's also possible to do some search path mangling in
Lua and from the command line, and maybe even set X properties
to detect restarts. But it's more kludgy. And the session
directory is always the first directory looked into, despite
other search path orders, which excludes certain options.)

-- 
Be an early adopter! Beat the herd! Choose Windows today!



Re: Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Tuomo Valkonen
On 2008-11-06, Daniel Clemente <[EMAIL PROTECTED]> wrote:
>The restart will save the session unless the source code is modified.
>Or maybe it can be overriden in Lua?

No. And it doesn't make much sense to override; saving is needed
for sane restart behaviour that will place the windows where they
were. (Of course, one might use some X root window property too
in this case.) The primary reason for the existence of resign() is 
also being able to quit the WM under a session manager (that supports
remote exit) without shutting down and saving the entire session. 
If one wants a static setup, it's perhaps best to just clean up
files in .xsession.

-- 
"[Fashion] is usually a form of ugliness so intolerable that we have
 to alter it every six months." -- Oscar Wilde
"The computer industry is the only industry that is more fashion-driven
 than women's fashion." -- RMS



Re: Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Daniel Clemente
Tuomo Valkonen <[EMAIL PROTECTED]> writes:

> Exit with ioncore.resign() instead of ioncore.shutdown()

  The session is saved not only on exit but also on restart:

/*EXTL_DOC
 * Restart, saving session first.
 */
EXTL_EXPORT
void ioncore_restart()
{
set_other(NULL);

if(smhook!=NULL){
smhook(IONCORE_SM_RESTART);
}else{
ioncore_do_snapshot();
ioncore_do_restart();
}
}


   The restart will save the session unless the source code is modified. Or 
maybe it can be overriden in Lua?


Daniel



Re: Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Tuomo Valkonen
On 2008-11-06, Sylvain Abélard <[EMAIL PROTECTED]> wrote:
>> How do I save workspace and frame layout?
>> Ion does it automatically for you when you exit it cleanly.
>>  Can ion be configured not to do this?
>
> A long time ago, my hack was to remove the write rights to the
> saved-layout file.
> If there isn't a better way now, I hope it helps

Exit with ioncore.resign() instead of ioncore.shutdown()


-- 
"[Fashion] is usually a form of ugliness so intolerable that we have
 to alter it every six months." -- Oscar Wilde
"The computer industry is the only industry that is more fashion-driven
 than women's fashion." -- RMS



Re: Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Sylvain Abélard
> How do I save workspace and frame layout?
> Ion does it automatically for you when you exit it cleanly.
>  Can ion be configured not to do this?

A long time ago, my hack was to remove the write rights to the
saved-layout file.
If there isn't a better way now, I hope it helps

-- 
Sylvain Abélard
"J'ai décidé d'être heureux, c'est meilleur pour la santé." -Voltaire


Disable automatic saving of workspace (frame layout)

2008-11-06 Thread Daniel Clemente

Hi.

  Here: http://www.modeemi.fi/~tuomov/ion/faq/entries/Saving_layout.html
  it says:
--
How do I save workspace and frame layout?

Ion does it automatically for you when you exit it cleanly.
--

  Can ion be configured not to do this? I would like to read my layout always 
from saved_layout.lua but not save it automatically on exit. I will save it 
manually when I want.


  Thanks

Daniel