Bennett Helm wrote:
On Wed, Jun 11, 2008 at 6:41 PM, Abdelrazak Younes <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>
By the way, where do we store information about dock status,
dialog
locations, etc.?
We (well, I) use Qt tools (QSettings, etc). But for file oriented
session management we still use the home-grown Session class which
I would like to kill someday.
I was actually asking where the data were stored: in the LyX user's
folder? somewhere else? (I've looked, but can't find it.)
Well, the LyX session file is in the user directory along preference and
is called 'session'.
The Qt session files where windows geometry and doc status are stored
are in:
1. $HOME/Library/Preferences/com.MySoft.Star Runner.plist
2. $HOME/Library/Preferences/com.MySoft.plist
3. /Library/Preferences/com.MySoft.Star Runner.plist
4. /Library/Preferences/com.MySoft.plist
See:
http://doc.trolltech.com/4.2/qsettings.html#platform-specific-notes
But this is very low priority for me, sorry.
Completely understandable.
But as I am a nice guy I have a quick and easy solution:
The session entry is indexed with the window id. This id is simply an
integer which is simply incremented each time you open a window. Now, if
the preference is set to have one window per document, I could use the
filename instead. This solution would not be bullet proof but will work
as long as you keep working with one window per document. The moment you
use tabs, it won't.
Abdel.