[maemo-developers] is "dbus-uuidgen --ensure" ok in an install script?

From: Brad Midgley bmidgley at gmail.com
Date: Tue Sep 2 21:49:56 EEST 2008
Hey

I have an issue that goes away after running "dbus-uuidgen --ensure".
Is this safe enough to put in a post-install script?

I'm writing a daemon that needs to be able to keep the tablet awake
(long story).

osso_initialize will complete if run from the terminal as "user" but
will fail and abort if I sudo gainroot first or if it's run as an
init.d service. I do seteuid() so we're running as user before making
the call but it doesn't help. The error message is:

initializing osso
process 1669: 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
See the manual page for dbus-uuidgen to correct this issue.

Should this be filed as a maemo bug?

-- 
Brad

More information about the maemo-developers mailing list