Any ideas how to read $HOME/.local/share/xorg/Xorg.0.log
file from snap on latest Ubuntu w/o connecting the whole home
interface? Is it possible to add this particular file access to https://docs.snapcraft.io/log-observe-interface?
Thank you.
Any ideas how to read $HOME/.local/share/xorg/Xorg.0.log
file from snap on latest Ubuntu w/o connecting the whole home
interface? Is it possible to add this particular file access to https://docs.snapcraft.io/log-observe-interface?
Thank you.
As it happens, connecting the home interface wouldn’t address this because the home interface does not allow access to top-level dot files and directories.
It seems that the gdm3 wayland running Xorg session split is what is putting these files down in the users directory since xorg is no longer starting as root. As such, log-observe doesn’t feel like the right place for these, but I’m not sure what the use case is.
The rule addition would be simple:
owner @{HOME}/.local/share/xorg/*log r,
but where to put it… Is this access for an existing application or something new? Can you describe a little about why it needs the access?
It’s necessary for https://snapcraft.io/hw-probe to check if graphics card works fine on the system by analysis of Xorg log.
In thinking through this, I think you likely want to use personal-files. Eg:
plugs:
dot-local-share-xorg-logs:
interface: personal-files
read:
- $HOME/.local/share/xorg
apps:
foo:
plugs:
- dot-local-share-xorg-logs