I tried this and works well, but Journal Icon dissapears of the frame.<br><br><br>
<br><br><div class="gmail_quote">2011/3/4 Martin Abente <span dir="ltr"><<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello Esteban!<br>
<br>
Did you try this?<br>
<br>
diff --git a/bin/sugar-session b/bin/sugar-session<br>
index cc8358c..c9d8a65 100755<br>
--- a/bin/sugar-session<br>
+++ b/bin/sugar-session<br>
@@ -95,8 +95,9 @@ def unfreeze_dcon_cb():<br>
<br>
def setup_frame_cb():<br>
logging.debug('STARTUP: setup_frame_cb')<br>
- from jarabe import frame<br>
- frame.get_view()<br>
+ from jarabe.frame import get_view<br>
+ frame = get_view()<br>
+ frame.add_message('this is a test')<br>
<br>
def setup_keyhandler_cb():<br>
logging.debug('STARTUP: setup_keyhandler_cb')<br>
<div><div></div><div class="h5"><br>
On Thu, Mar 3, 2011 at 10:24 AM, Esteban Bordon<br>
<<a href="mailto:ebordon@plan.ceibal.edu.uy">ebordon@plan.ceibal.edu.uy</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I want to show a simple notification when sugar starts up.<br>
><br>
> I have a python script like this:<br>
><br>
> import dbus<br>
> BUS_NAME = 'org.freedesktop.Notifications'<br>
> OBJ_PATH = '/org/freedesktop/Notifications'<br>
><br>
><br>
> IFACE_NAME = 'org.freedesktop.Notifications'<br>
> bus = dbus.SessionBus()<br>
> notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)<br>
> notifications = dbus.Interface(notify_obj,IFACE_NAME)<br>
> notifications.Notify("HelloWorld",0,'',"Summary","Body",[],{},-1)<br>
><br>
><br>
><br>
> The script works fine, but I couldn't run it at sugar start up. I tried to call the script in .xsession and sugar-session but didn't work.<br>
><br>
><br>
><br>
> Any idea?<br>
><br>
> Thanks,<br>
> Esteban.<br>
><br>
</div></div></blockquote></div><br>