Opened 7 years ago

Last modified 11 months ago

#996 new defect/bug

Bookmarks problem on Windows

Reported by: lkernan Owned by: KaZeR
Priority: major Milestone: version 0.5.2
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 (4)

comment:1 Changed 7 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 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?

comment:2 Changed 7 years ago by sleske

  • Cc sebastian.leske@… added

comment:3 Changed 5 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 11 months 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.

Note: See TracTickets for help on using tickets.