← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Use the OS Documents folder for default project instead of CWD

 

Does anyone else have any comments on this change.  It makes sense to me
that on a new or empty project that the project path gets set to the
user's home path.  I see in the patch that it is fixed in kicad and
eeschema.  It might be a good idea to see if this behavior exists in
pcbnew as well and fix it accordingly.

On 6/14/2015 12:26 PM, Martin d'Allens wrote:
> Hi all,
> 
> This recent bug complains about the default project path being in a
> read-only directory on Windows:
> https://bugs.launchpad.net/kicad/+bug/1463510
> 
> The attached patch changes the default project folder to wx's
> GetDocumentsDir(), which should translate to "$HOME", "...\My Documents"
> (Win), or "~/Documents" (Mac).
> I tested it solely on Ubuntu.
> 
> There could be more scenarios where we want to do the same. I tried to
> extend this behaviour to Eeschema's standalone mode for starters, tell
> me if more needs be done.
> 
> However the behaviour of writing to some default directory without
> asking is unsettling. I suppose most noname.pro <http://noname.pro> /
> noname.sch wouldn't exist if a "Save as" popup was shown the first time.
> 
> Martin
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


Follow ups

References