Public bug reported:

X-based snaps doesn't work on some distros with KDE5 since the
XAUTHORITY env variable points to /tmp/xauth-${UID}-${DISPLAY/:/_} that
is not usable inside a snap since /tmp/ is private inside the snap (see
kdeinit5).

**Workaround**:
You can launch the snap (tested on ArchLinux) using the old ~/.Xauthority file:

XAUTHORITY=~/.Xauthority /snap/bin/vlc

If you don't have an updated ~/.Xauthority just do cp
/tmp/xauth-${UID}-${DISPLAY/:/_} ~/.Xauthority

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  X-based snaps doesn't work on some distros with KDE5 since the
- XAUTHORITY env variable points to `/tmp/xauth-${UID}-${DISPLAY/:/_}`
- that is not usable inside a snap since `/tmp/` is remounted (see
+ XAUTHORITY env variable points to /tmp/xauth-${UID}-${DISPLAY/:/_} that
+ is not usable inside a snap since /tmp/ is private inside the snap (see
  kdeinit5).
  
  **Workaround**:
  You can launch the snap (tested on ArchLinux) using the old ~/.Xauthority 
file:
- ```
+ 
  XAUTHORITY=~/.Xauthority /snap/bin/vlc
- ```
  
- If you don't have an updated `~/.Xauthority` just do `cp
- /tmp/xauth-${UID}-${DISPLAY/:/_} ~/.Xauthority`
+ If you don't have an updated ~/.Xauthority just do cp
+ /tmp/xauth-${UID}-${DISPLAY/:/_} ~/.Xauthority

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1604478

Title:
  X-based snaps doesn't work on (some) KDE5 distros

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1604478/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to