skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.16k stars 62 forks source link

Allow setting a profile location for sync purposes #665

Open zilti opened 2 months ago

zilti commented 2 months ago

It would be nice to be able to specify a location where Lagrange stores bookmarks, certs, settings, etc.

On Linux, it seems to be ~/.config/lagrange, but e.g. on Android, I have no clue. It would be useful to be able to specify this so one can sync that "profile" with tools like Syncthing.

skyjake commented 2 months ago

This is already supported using the --user command line option (on desktop).

However, when it comes to mobile operating systems, you typically can't set command line options so changing the user data directory this way is not possible. Also, the operating system may enforce restrictions on where apps can keep their files, mostly for security/sandboxing purposes. You can find the files in (for example):

I don't know whether the aforementioned security restrictions affect Syncthing's ability to access that folder. (Android is not my forte, alas.)