So right now KiCad uses wxGetCwd when it needs a default path. On
Linux this is HOME or wherever to launched it from command line.

The problem is wxGetCwd returns %PROGRAM FILES%/KiCad as windows uses
the executable directory by default. This directory is read only on a
proper Windows 7+ system and requries administrator permissions to
write. So it is a bad choice.

Ideally we replace wxGetCwd with
wxStandardPaths::Get().GetDocumentsDir() which will return
%USER%/Documents on Windows and HOME on linux.

Except this will break Linux users being able to launch kicad in
command line in their favorite folder.

So do we #ifdef Windows where getCwd used or something else? As of
right now, wxGetCwd is an bad choice for windows.

-- 
Mark

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to