Opened 11 years ago

Last modified 4 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@…


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 11 years ago by sleske

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 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?

comment:2 Changed 11 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

  • 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 4 years ago by

  • 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.