rgleason / celestial_navigation_pi

celestial navigation plugin for opencpn
GNU General Public License v3.0
9 stars 6 forks source link

Use correct way to get writable data dir (#7, OpenCPN#2312) #10

Closed leamas closed 3 years ago

leamas commented 3 years ago

Use GetpPrivateApplicationDataLocation() to get the private, writable data directory. This fixes current code which doesn't handle flatpak (and also might run into troubles with upcoming, new platforms).

Doing so, be careful to not update the core OpenCPN data, see https://github.com/OpenCPN/OpenCPN/issues/2312

Closes: #7

Tested on flatpak only.

rgleason commented 3 years ago

Thanks Alec this was the next pi I was going to do. Much appreciated.