On Fri, 28 Jan 2011 10:29:22 +1100 Lex Trotman elextr@gmail.com wrote:
Yes, but the patch never loads the project session from a project on the command line since main_load_project_from_command_line is only ever called with FALSE?
Of course it loads them.
TRUE -> project_load_file_with_session() -> project_load_file() + configuration_open_files() FALSE -> project_load_file() only
Since load_startup_files() calls configuration_open_files() after loading the default or project session file names, TRUE is not required. The TRUE is for opening a project via socket.
- trying to open a file (eg from double clicking in nautilus) will
screw your session as command line loading of single files ignores your session opened files, except if geany was already opened.
SciTE will do the same, and so will UltraEdit (the very old versions I used). If you want a permanent session, create a project.
Need to support multiple default sessions. Too complicated??
Now let's give these default sessions names, to be able to identify them, and files to be saved, of course, and a distinctive filename suffix, for example ".geany", and we end up with projects.
You can create as many projects as you want to save file lists only, not related to any software (or other) projects. Name them "Default Session 1", "Default Session 2" etc. and that's it.