From eafed5ee7379665aa0edd44ffe60dd4b039399ad Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 30 Aug 2012 19:29:50 -0500
Subject: x11vnc:  remove references to /home/mythtv

---
 abs/extra/x11vnc/PKGBUILD       |  2 +-
 abs/extra/x11vnc/x11vnc.install | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/abs/extra/x11vnc/PKGBUILD b/abs/extra/x11vnc/PKGBUILD
index 5672669..2ee8284 100644
--- a/abs/extra/x11vnc/PKGBUILD
+++ b/abs/extra/x11vnc/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=x11vnc
 pkgver=0.9.12
-pkgrel=2
+pkgrel=3
 pkgdesc="a VNC server for real X displays"
 arch=("i686" "x86_64")
 license=("GPL2")
diff --git a/abs/extra/x11vnc/x11vnc.install b/abs/extra/x11vnc/x11vnc.install
index 63af505..97b6048 100644
--- a/abs/extra/x11vnc/x11vnc.install
+++ b/abs/extra/x11vnc/x11vnc.install
@@ -1,11 +1,11 @@
 post_install() {
-  if [ -f /home/mythtv/.fluxbox/apps ] ; then
-    if [ -n `/bin/grep x11vnc /home/mythtv/.fluxbox/apps` ] ; then
+  if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+    if [ -n `/bin/grep x11vnc $MYTHHOME/.fluxbox/apps` ] ; then
       echo ""
       echo "==> Adding x11vnc to user mythtv's ~/.fluxbox/apps"
       echo ""
       # Add x11vnc to ~/mythtv/.fluxbox/apps before LinHES-run
-      sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' /home/mythtv/.fluxbox/apps
+      sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' $MYTHHOME/.fluxbox/apps
     else
       echo ""
       echo "==> x11vnc startup line already present in user"
@@ -20,7 +20,7 @@ pre_remove() {
   PID=`pidof -o %PPID /usr/bin/x11vnc`
   [ -n "$PID" ] && kill $PID
   # Remove line in .fluxbox/apps
-  if [ -f /home/mythtv/.fluxbox/apps ] ; then
-    sed -i '/x11vnc/d' /home/mythtv/.fluxbox/apps
+  if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+    sed -i '/x11vnc/d' $MYTHHOME/.fluxbox/apps
   fi
 }
-- 
cgit v0.12

