I agree that it would be good if part of the execution chain could read the XDG directories and at least set the variables.
I would vote on snap run, because:
- it runs without confinement so it can read those files - it is written in go so should be easier to write correct and safe code
The trick is how to do it exactly: should those always be set? Unfortunately snap run doesn't know if a particular interface is connected or not.
I'm marking this bug as triaged.
I agree that it would be good if part of the execution chain could read the XDG directories and at least set the variables.
I would vote on snap run, because:
- it runs without confinement so it can read those files
- it is written in go so should be easier to write correct and safe code
The trick is how to do it exactly: should those always be set? Unfortunately snap run doesn't know if a particular interface is connected or not.
I'm marking this bug as triaged.