Hello,
it may be just that I missed it, but I’m thinking I could use an env variable that provides a USER_DATA_PATH
with the “current” snap revision ‘wildcard’ in it.
I would be using whatever it returns as a basis for constructing a default for a user-modifiable path setting in my app, that works across revisions of my snap.
(So I’d “typically” like to construct the
/home/username/snap/snapname/current/mystuffgoeshere/
path instead of the
/home/username/snap/snapname/x123/mystuffgoeshere/
since /home/username/snap/snapname/x123/mystuffgoeshere/
becomes inaccessible after a snap refresh, and the path should update to /home/username/snap/snapname/x124/mystuffgoeshere/
, which then feels dodgy if done automagically)
and I guess I need
/home/username/snap/snapname/current/
as a basis. Is there an envrionment variable now to provide that? Is there a best practice to construct the value if not (I’ll likely do some string replacement for starters), and shouldn’t there be a variable/recipe?
Or is it just a stupid question, do such values pose a risk I didn’t spot at first?
Thank you!