View Single Post
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#13
Originally Posted by craigcii View Post
putting

export DISPLAY=:0.0

before running mauku using

export DISPLAY=:0.0
>/home/user/mauku.log
/usr/bin/mauku >/home/user/mauku.log 2>&1

outputting the log i get



using the same for gpodder

export DISPLAY=:0.0
>/home/user/gpodder.log
/usr/bin/python2.5 /usr/bin/gpodder --fremantle >/home/user/gpodder.log 2>&1

then exporting the log i get
So the apps can't get dbus session bus address. Now this is a really ugly hack, but try putting this in the script before starting the apps...

Code:
PATH="/bin/:/usr/bin"
pids=`pgrep dbus-daemon`
for pid in $pids; do
    FILE=`cat /proc/$pid/environ | perl -pe 's/\x0/\n/g'|grep SESSION_BUS_ADDRESS_FILE \
    |sed -e 's/SESSION_BUS_ADDRESS_FILE=//g'`
done
eval `cat $FILE`
This works for me, I don't know if there is a cleaner/better way...

Last edited by hqh; 2010-02-28 at 14:47.