]> git.phdru.name Git - xsetbg.git/commitdiff
Remove absolute directory ~/lib to make it portable
authorOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 18:18:15 +0000 (22:18 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 18:18:15 +0000 (22:18 +0400)
TODO
xsetbg-dbus-change
xsetbg-dbus-force
xsetbg-dbus-restart
xsetbg-dbus-start
xsetbg-dbus-stop
xsetbg-http-restart
xsetbg-http-start
xsetbg-start-http-pinger

diff --git a/TODO b/TODO
index dc1a49f8189f86cdaf90741885dd13d286cd0672..ab4c743f03c3ec6d6e0a0db3ee02ea6899d4ebeb 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,3 @@
-Remove absolute directory ~/lib to make it portable.
-
-
 Serialized list of images for faster starting.
 
 
index 99a4d22980fa09b6513a1b185abe5e85a7e465b7..0e4c197fbef54ce9e7408d8f431ed5a5c0ad2ed5 100755 (executable)
@@ -1,2 +1,2 @@
 #! /bin/sh
-exec "$HOME/lib/xsetbg"/xsetbg-dbus-client.py change
+exec "`dirname \"$0\"`"/xsetbg-dbus-client.py change
index 52f2e2b24f73f65e053a7c15ebd63c4e3fb105a1..694b35fbff7839d474deb5fad1cd01fc5d182b9e 100755 (executable)
@@ -1,2 +1,2 @@
 #! /bin/sh
-exec "$HOME/lib/xsetbg"/xsetbg-dbus-client.py force
+exec "`dirname \"$0\"`"/xsetbg-dbus-client.py force
index c10e8129baa322b8d5fa155f7c16fae26f554706..512531ea9b861a9a6abf497f84e063369ef9ee90 100755 (executable)
@@ -1,2 +1,2 @@
 #! /bin/sh
-"$HOME/lib/xsetbg"/xsetbg-dbus-stop && exec "$HOME/lib/xsetbg"/xsetbg-dbus-start
+"`dirname \"$0\"`"/xsetbg-dbus-stop && exec "`dirname \"$0\"`"/xsetbg-dbus-start
index 418deb16c656d0daee2b2cbc319aff5847e17d76..70fcaed1016fde4b249d8e62d7458c8a00df1452 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 
 umask 077
-nice -20 ionice -c3 "$HOME/lib/xsetbg"/xsetbg-dbus.py >/dev/null 2>&1 &
+nice -20 ionice -c3 "`dirname \"$0\"`"/xsetbg-dbus.py >/dev/null 2>&1 &
index 3d2bec8b49d2cd4f838ff3958066b54d68be436e..0ff6cc25e3ecd4156121ae13a5a99d7661d3e469 100755 (executable)
@@ -1,2 +1,2 @@
 #! /bin/sh
-exec "$HOME/lib/xsetbg"/xsetbg-dbus-client.py stop
+exec "`dirname \"$0\"`"/xsetbg-dbus-client.py stop
index 81eb21b8d97e0a781a729248a327fedce50622f1..e6530be162bf964471f5b23ced5a1acc9ae93125 100755 (executable)
@@ -1,2 +1,2 @@
 #! /bin/sh
-"$HOME/lib/xsetbg"/xsetbg-http-stop && exec "$HOME/lib/xsetbg"/xsetbg-http-start
+"`dirname \"$0\"`"/xsetbg-http-stop && exec "`dirname \"$0\"`"/xsetbg-http-start
index 03a6cfbdd57f1cddf22e678b919ef755b959a8b2..40e7a3119076972369c4217b84f8f827137df9c1 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 
 umask 077
-nice -20 ionice -c3 "$HOME/lib/xsetbg"/xsetbg-wsgi.py >/dev/null 2>&1 &
+nice -20 ionice -c3 "`dirname \"$0\"`"/xsetbg-wsgi.py >/dev/null 2>&1 &
index e897fd7576e5d8cab5ebda2e97f2af5c27499785..b04931a3d79c881b7a6719725d9595196e8c5a4d 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 # Pinger - ping xsetbg.py every minute
-(cd "$HOME/lib/xsetbg" &&
+(cd "`dirname \"$0\"`" &&
 while true; do
    sleep 60
    ./xsetbg-http-change