<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div><font size="3"><tt>Dear list,<br>Back in 2006, someone wrote the following:<br>-------------------------------------------------------------------------------------<br></tt></font><ul><li><font size="2"><em>From</em>: Dennis Jacobfeuerborn <d jacobfeuerborn conversis de></font></li><li><font size="2"><em>To</em>: Development discussions related to Fedora Core <fedora-devel-list redhat com></font></li><li><font size="2"><em>Subject</em>: cron/dbus problem?</font></li><li><font size="2"><em>Date</em>: Mon, 13 Feb 2006 15:13:25 +0100</font></li></ul><font size="3"><tt>Given the (puzzling) absence of an alarm/reminder applet for the gnome </tt><tt>panel I tried (ab)using Tomboy for this purpose but hit a problem involving </tt><tt>Cron and DBus. When I call "tomboy --open-note Alarm" the
 respective notes </tt><tt>pops up but when I put the same command in the crontab I get this: </tt><tt>Unhandled Exception: DBus.DBusException: Unable to determine the address of </tt><tt>the message bus </tt></font><pre style="margin: 0em;"><font size="3">in <0x0009f> DBus.Bus:GetBus (BusType busType)<br>in <0x00009> DBus.Bus:GetSessionBus ()<br>in <0x00022> Tomboy.TomboyCommandLine:Execute ()<br>in <0x00061> Tomboy.Tomboy:Main (System.String[] args)<br><br></font></pre><font size="3"><tt>Does anyone have an idea why the session bus seems to be available from a </tt><tt>regular shell but not from cron? </tt></font><pre style="margin: 0em;"><font size="3">Regards,<br>  Dennis<br><br>--------------------------------------------------------------------------------------<br><br>Don't know whether this is of use to anyone faced with the same problem, or to help with wider development, but I solved the problem by using the
 following<br> line in a crontab:<br>* * * * * export DBUS_SESSION_BUS_ADDRESS=`cat "/proc/$(expr substr $(ps -C tomboy -o pid=) 1 5)/environ" | tr '\0' '\n' | grep DBUS | cut -d '=' -f2-`; tomboy (options)<br><br>Sorry if this has all been sorted out by now, but didn't know where to post.<br><br>Steve</font></pre></div></div><br>Send instant messages to your online friends http://uk.messenger.yahoo.com </body></html>