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