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


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 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 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!