Problems on MS Windows Vista/7
Posted: Thu Oct 01, 2009 5:38 pm
Hi Eran,
I played with CL on Windows Vista and Windows 7 little bit and I've revealed several problems dealing with UAC and standard CL's configuration and Workspace paths. The problem is that default configuration/workspace folder on Windows is "C:\Program Files" where a write access for non-installation processes is forbidden. Moreover, on Windows 7 all subfolders/files created by an application in "Program Files" directory are some kind virtual - they are hidden in Windows Explorer and even in TotalCommander (with enabled showing of hidden files) - and they are deleted after the application termination! It means that none of CL's configuration/workspace/project folders/files are persistent. Also the MinGW compiler has problems with compiling of files stored in "Program Files" folder (I guess the same problem will appear for all paths with spaces and non-ascii characters).
So, suggestion for making CL more Vista/7 friendly is:
1) store CL's configuration in location where users' write access is permited: for example into users home folders (or users' application data folder). You can obtain it by calling of wxStandardPaths::GetUserDataDir() function.
2) set workspace/project default path to user's documents directory (wxStandardPaths::GetDocumentsDir()).
Best regards
Michal
I played with CL on Windows Vista and Windows 7 little bit and I've revealed several problems dealing with UAC and standard CL's configuration and Workspace paths. The problem is that default configuration/workspace folder on Windows is "C:\Program Files" where a write access for non-installation processes is forbidden. Moreover, on Windows 7 all subfolders/files created by an application in "Program Files" directory are some kind virtual - they are hidden in Windows Explorer and even in TotalCommander (with enabled showing of hidden files) - and they are deleted after the application termination! It means that none of CL's configuration/workspace/project folders/files are persistent. Also the MinGW compiler has problems with compiling of files stored in "Program Files" folder (I guess the same problem will appear for all paths with spaces and non-ascii characters).
So, suggestion for making CL more Vista/7 friendly is:
1) store CL's configuration in location where users' write access is permited: for example into users home folders (or users' application data folder). You can obtain it by calling of wxStandardPaths::GetUserDataDir() function.
2) set workspace/project default path to user's documents directory (wxStandardPaths::GetDocumentsDir()).
Best regards
Michal