Snap packages are in containers which prevent them from "seeing" outside of those containers unless you give them permission.
For VLC, I'd recommend uninstalling the Snap package, and using the vanilla APT version:
代码语言:javascript复制sudo snap remove vlc
sudo apt update && sudo apt install vlcYou will be able to run VLC as root by modifying the VLC binary, located in /usr/bin
First, you'll need a hex-editor, like Bless :
代码语言:javascript复制sudo apt-get install blessThen, you'll open the VLC binary with the hex-editor :
代码语言:javascript复制sudo bless /usr/bin/vlcSearch and change the geteuid string by getppid, save and exit.

You can now launch VLC as root.


