Opened 10 years ago
Last modified 3 years ago
#996 new defect/bug
Bookmarks problem on Windows
Reported by: | lkernan | Owned by: | KaZeR |
---|---|---|---|
Priority: | major | Milestone: | version 0.6.0 |
Component: | install | Version: | git master |
Severity: | Keywords: | windows, installer | |
Cc: | sebastian.leske@… |
Description
On Windows Vista and 7, the data directory and bookmark.txt file can't be created when Navit is installed in the normal location (c:\program files (x86)\navit\navit.exe)
This is because Windows default security doesn't allow an application to write to a folder under program files unless running as Administrator.
Navit should instead be writing files to the users data folder.
Change History (5)
comment:1 Changed 10 years ago by sleske
comment:2 Changed 10 years ago by sleske
- Cc sebastian.leske@… added
comment:3 Changed 9 years ago by usul
- Component changed from port/windows to install
- Keywords windows installer added
- Milestone set to version 0.5.1
- Owner set to KaZeR
Essential, so scheduled for hotfix
comment:4 Changed 5 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Milestone changed from version 0.5.1 to version 0.5.2
This ticket was pushed back in order to bring 0.5.1 out soon.
comment:5 Changed 3 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Milestone changed from version 0.5.2 to version 0.6.0
Ticket retargeted after milestone closed
Note: See
TracTickets for help on using
tickets.
Yes, this is true.
Navit always puts the bookmark.txt and destination.txt files into its data directory (called NAVIT_USER_DATADIR in the code).
On Windows (and Windows CE, I believe), Navit will put this data directory into the folder where navit.exe resides. This is determined in main.c (main_init and main_setup_environment).
The right way to do it would probably be to put this data directory into CSIDL_APPDATA (usually C:\Documents and Settings\username\Application Data). See http://msdn.microsoft.com/en-us/library/bb762494%28VS.85%29.aspx for how to determine the path to the "Application data" folder.
Unfortunately, I cannot change this, as I do not develop on Windows. Maybe some of the Windows devs can fix this?