Ide always try to create/compile from program bin directory and fails to save programs and configuration with non-admin users
Original Reporter info from Mantis: ciampix
-
Reporter name: Marco Ciampa
Original Reporter info from Mantis: ciampix
- Reporter name: Marco Ciampa
Description:
The FPC ide should detect that is running under Windows (just see if env var %APPDATA% is defined) and try to save its configuration under the current user env %APPDATA% dir, instead of trying to do it under the fpc bin dir.
This is totally wrong and dangerous. If a user is a student, if he do it at home, where he is generally admin of its PC, he risks do modify or mangle the fpc install dirs. If he is at school, where generally he is not admin, he has errors even if he choose the right place to save the source since FPC ide continue to try to save its config data into the read-only fpc bin dir.
Please correct it since fpc is used in many schools and WinXP is the most used OS.
Steps to reproduce:
Crate a non admin user under windows. Start FPC, create a program, save & compile and try to exit from FPC IDE.
Mantis conversion info:
- Mantis ID: 20870
- OS: Windows
- OS Build: NT/2K/XP/Vista/S
- Platform: Windows
- Fixed in version: 3.0.0
- Fixed in revision: 19929 (#25e38983)