maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   osso-xterm launches from CLI, but not another script (DBus issue) (https://talk.maemo.org/showthread.php?t=30809)

jgombos 2009-08-15 08:59

osso-xterm launches from CLI, but not another script (DBus issue)
 
This script "output_log.sh" (below) launches an xterm and starts tailing a logfile:
Code:

#!/bin/sh

/usr/bin/maemo-summoner /usr/bin/osso-xterm.launch \
  -e "tail -f /var/log/openvpn.log"

It works fine when run from the CLI. But if openvpn tries to run it (by placing "up output_log.sh" in the openvpn config file), it fails with the error:
Code:

process 11752: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
dbus is installed, and the following files are visible:
Code:

# ls -a1 /usr/bin/dbus-*
/usr/bin/dbus-cleanup-sockets
/usr/bin/dbus-daemon
/usr/bin/dbus-launch
/usr/bin/dbus-monitor
/usr/bin/dbus-send
/usr/bin/dbus-uuidgen


jgombos 2009-08-15 09:15

*solved* Re: osso-xterm launches from CLI, but not another script (DBus issue)
 
Solution from qwerty12: "source /etc/osso-af-init/af-defines.sh" before launching xterm.

Solved. See http://talk.maemo.org/showpost.php?p=311922&postcount=3


All times are GMT. The time now is 11:58.

vBulletin® Version 3.8.8