dcaliste / maep-qt

A map viewer for Jolla Sailfish OS
29 stars 14 forks source link

Track recording location #41

Open jlaba opened 4 years ago

jlaba commented 4 years ago

As a User I'm not able to find the recorded map, because of

  1. I do not know, where the tracks are stored. The folder is not shown anywhere and could not be changed in the settings
  2. As documented in source (tracks.c function buildpath()) it's all folders, which does not exist on my phone, beside the music path.

So either the recording has not be saved without a notice or I'm not able to find the file. So I propose the following solution:

  1. Add the location to store tracks to the settings (at least as a read only value to show it to the user)
  2. Test if the location exists and if not, create it, immediatly after the track recording has been started by the user. So it is clear, that there will be now issues (beside free space) to store it.
dcaliste commented 4 years ago

As documented in source (tracks.c function buildpath()) it's all folders, which does not exist on my phone

It's line 315 in that file. On your phone, it expands to ~/.local/share/harbour-maep-qt/.

That being said, I agree that it's not easily discoverable and I often loose unsaved tracks because I forgot to save them before quitting and didn't move this file quickly enough before next launch :/

I need to rewrite a bit this part for the track to properly auto-save there and let the user save as somewhere else, or browse them directly.

laenion commented 2 years ago

The location is shown in the settings menu meanwhile, but with https://github.com/dcaliste/maep-qt/commit/f8592084f9aed7f3ef7a4a8e4d58d06b17eefa4c the location was changed again, so the settings entry is referencing the wrong path now...