[Geany-devel] Proposed patch to fix issues with command line file loading

weltall weltall2 at xxxxx
Sat Jan 29 16:39:31 UTC 2011


So now the idea of having the new file open in a new session if geany
was not opened is not wanted anymore?
Il giorno sab, 29/01/2011 alle 14.17 +0200, Dimitar Zhekov ha scritto:
> Hi,
> 
> Here is a sample load_startup_files() pseudocode that will hopefully:
> 
> 1. Fix the CL project loading if prefs.load_session is false.
> 2. Open the default session files based on prefs.load_session even if
> command line files are passed.
> 3. Always open the command line files.
> 4. Make the startup simpler.
> 
> -
> local load_session = false
> 
> if (arg1 ends with  ".geany")
>       main_load_project_from_command_line(arg1, false)
>       skip arg1
>       load_session = cl_options.load_session
> else if (cl_options.load_session && prefs.load_session && !new_instance)
>       // filename(s) -> default session, not last project
>       if (args <= 1)
>             load_session_project_file()
>       load_session = true
> 
> if (load_session)
>       configuration_open_files()
>       gtk_notebook_get_n_pages...
> 
> open_cl_files()
> -
> 
> This is the variant Colombian and I prefer, with no preference to avoid
> loading the default session if command line files are specified and
> prefs.load_session is true. For the command line, using -s and -i can be
> used to do that.
> 





More information about the Devel mailing list