[Sugar-devel] Configure an Activity to start at boot time.

Gustavo Duarte gus.duarte at gmail.com
Tue Sep 30 08:56:17 EDT 2014


Hi James,

Thanks for your explanation, and show me the different options.

In my case, Sugar is running over Ubuntu, so i guess, .xsession isn't an
option. I choice as workaround, modify sugar-session script to start this
app.

I'm agree with you, that a final solution could be sugar-session loads
application from a particular directory like Gnome do, from
/etc/xdg/autostart.

Kind regards.

Gustavo.

On Mon, Sep 29, 2014 at 6:14 PM, James Cameron <quozl at laptop.org> wrote:

> There are many places an application can be started.
>
> Too many options.
>
> If I were doing this, my decision would be constrained by:
>
> - what Linux distribution is being used,
>
> - exactly what graphics resources are needed,
>
> - how critical it is that the application be started before or after
>   the Sugar shell,
>
> - if there is a performance impact caused by the application starting
>   at the same time as the other processes started by sugar-session.
>
>
> If you are using OLPC OS, read the source and learn the sequence:
>
> 1.  systemd keeps /usr/sbin/olpc-dm running, (a C program, the sources
>     can be found in the olpc-utils git repository),
>
> 2.  olpc-dm starts /usr/bin/olpc-session, (a shell script, also in
>     olpc-utils, also reads and executes .xsession file),
>
> 3.  olpc-session starts /bin/sugar,
>
> 4.  sugar starts /bin/sugar-session.
>
>
> While .xsession would seem to be a natural place to add an
> application, doing this prevents easy use by the user later.  Also, it
> starts _before_ sugar-session, so it won't see the same graphics
> resources (such as window manager properties and hints).
>
>         echo "application &" >> .xsession
>
> There seems to be a lack of suitable places to set up such an
> application without having to change some packages.  In future I'd
> like to see some feature of sugar-session that loads custom
> applications or activities on start.
>
> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140930/cf35a919/attachment.html>


More information about the Sugar-devel mailing list