FIXUPHACK 447 B

123456789101112
  1. #120907 vlc in debian/ubuntu configured to not run as root (it is a pre-compile configure option to enable running as root).
  2. #this hack will fix it...
  3. #note, this code is also in /usr/local/petget/hacks-postinstall.sh.
  4. if [ -f /usr/bin/bbe ];then #bbe is a sed-like utility for binary files.
  5. if [ -f usr/bin/vlc ];then
  6. bbe -e 's/geteuid/getppid/' usr/bin/vlc > /tmp/vlc-temp1
  7. mv -f /tmp/vlc-temp1 usr/bin/vlc
  8. chmod 755 usr/bin/vlc
  9. fi
  10. fi