How to run VLC Player in root account

Tested OS: CentOS 7.1

以下是來自一個討論區的朋友建議的解決方法,不過找著找著,就忘了出處在哪裡了。但是我在CentOS上測試,顯然是可以使用沒有問題。

Default, VLC Player can’t be executed if you are in root account. But the following command solves this situation:

sed -i 's/geteuid/getppid/' /usr/bin/vlc