[Geany-Devel] Setting Windows working directory

Nick Treleaven nick.treleaven at xxxxx
Fri Mar 15 15:18:33 UTC 2013


On 13/03/2013 06:19, Lex Trotman wrote:
> Shouldn't plugins use geany->app->configdir as the base directory as
> perhttp://www.geany.org/manual/reference/structGeanyApp.html
>
> and if its Geany it can use GeanyApp.datadir as the system data directory.
>
>
>   For this to work, the working
>> >directory must be set correctly. The reason for the mentioned change was
>> >this in some plugin, so I've moved the code to change the working
>> >directory to perform it earlier in the init process, before loading plugins.
>> >For a quick'n'dirty fix we could either move the working directory
>> >change code move after command line parsing code but before plugin
>> >loading or we remember the working directory at early stage to use this
>> >when llater handling command line arguments.
>> >Both are not nice and the real solution is to get rid of relative paths
>> >for resources in the installation directory.
>> >I'm going to work on this.
> Yes it would be better to keep the working dir, ... well ... the working dir:)

+1, it's best for plugins to use fixed paths and avoid temporarily 
changing the working dir.



More information about the Devel mailing list