snap install of vlc doesn't have correct permission
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snap-store-desktop |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A snap installation of vlc will not allow vlc to play TV. A repo installation of vlc works as expected.
When run from command line, get the following messages:-
--------------snap version-
user@host:~$ /snap/bin/vlc Desktop/
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b)
[00000000007c7400] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Warning: Ignoring XDG_SESSION_
Qt: Session management error: None of the authentication protocols specified are supported
[00007f9a84000bb0] dtv stream error: cannot access DVR: Operation not permitted
[00007f9a84000bb0] dtv stream error: cannot access DVR: Operation not permitted
[00007f9a88008f20] dtv stream error: cannot access DVR: Operation not permitted
[00007f9a88001ab0] dtv stream error: cannot access DVR: Operation not permitted
[00007f9ab4000b20] dtv stream error: cannot access DVR: Operation not permitted
QObject::~QObject: Timers cannot be stopped from another thread
--------------repo version-
user@host:~$ /usr/bin/vlc Desktop/
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-
[000055bfea101570] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f9a44009d30] main decoder error: buffer deadlock prevented
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_
[00007f9a94002b30] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[00007f9a44009d30] avcodec decoder: Using Intel i965 driver for Intel(R) Haswell - 2.1.0 for hardware decoding
-------
It seems that snap installations do not see the same file permission as the repo version.
1------
Description: Ubuntu 18.04.4 LTS
Release: 18.04
2a-----
vlc:
Installed: 3.0.8-0ubuntu18
Candidate: 3.0.8-0ubuntu18
Version table:
*** 3.0.8-0ubuntu18
500 http://
500 http://
100 /var/lib/
3.0.1-3build1 500
500 http://
2b-----
name: vlc
summary: The ultimate media player
publisher: VideoLAN✓
store-url: https:/
contact: https:/
license: GPL-2.0+
description: |
VLC is the VideoLAN project's media player.
Completely open source and privacy-friendly, it plays every multimedia file and streams.
It notably plays MKV, MP4, MPEG, MPEG-2, MPEG-4, DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3,
Ogg/Vorbis files, BluRays, DVDs, VCDs, podcasts, and multimedia streams from various network
sources. It supports subtitles, closed captions and is translated in numerous languages.
snap-id: RT9mcUhVsRYrDLG
channels:
latest/stable: 3.0.8 2019-12-19 (1397) 212MB -
latest/candidate: 3.0.8 2019-12-16 (1397) 212MB -
latest/beta: 3.0.8-469-
latest/edge: 4.0.0-dev-
3------
snap vlc should work the same as the repo version of vlc, ie display the dvb-t channels. Instead, it fails with the above messages
4----------what happens
Repo version works just fine. Snap version fails with permission errors.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: snapd 2.42.1+18.04
ProcVersionSign
Uname: Linux 4.15.0-
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 9 12:24:16 2020
InstallationDate: Installed on 2018-05-08 (701 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
no longer affects: | snapd (Ubuntu) |
Changed in snap-store-desktop: | |
status: | New → Fix Released |
```
[00007f9a84000bb0] dtv stream error: cannot access DVR: Operation not permitted
[00007f9a84000bb0] dtv stream error: cannot access DVR: Operation not permitted
```
You probably need to allow vlc to access the dvb devices. Can you run `snap connect vlc:dvb` command and check whether it works?