XDG_CONFIG_HOME is defined in the snap environment

Hi,

Does anybody know why XDG_CONFIG_HOME is defined in Peppermint OS (10 Respin) and not in Ubuntu 18.04?

It is causing some trouble to Tizonia in PeppermintOS (background info here: https://github.com/tizonia/tizonia-openmax-il/issues/703)

Ubuntu 18.04

$ snap run --shell tizonia                
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

juan@ubuntu1804:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
juan@ubuntu1804:/home/juan/Documents$ 

Peppermint OS

$ snap run --shell tizonia                
bash: /usr/bin/dircolors: Permission denied
bash: /etc/bash_completion: Permission denied

juan@tizonia:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
XDG_CONFIG_HOME=/home/juan/.config
juan@tizonia:/home/juan/Documents$ 

That’s because XDG_DESKTOP_HOME is not set at all on an Ubuntu desktop installation. I suspect the peppermintOS is setting that as a matter of course for every logged-in session. It might be worth snapd being aware of this and filtering out the XDG_* variables from the host for strictly confined snaps.

This situation is breaking Tizonia on Peppermint OS. Should I raise a bug on snapd’s bug tracker?

yep

Done:

1 Like