kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #20043
cwd and windows mess
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
Follow ups