[Sugar-devel] Configure an Activity to start at boot time.
quozl at laptop.org
Tue Sep 30 17:40:06 EDT 2014
I'm surprised that .xsession isn't an option, it is what I use on
Ubuntu. Check again.
/etc/gdm/Xsession refers to it.
/etc/X11/Xsession refers to it.
What is your display manager package? I use nodm.
On Tue, Sep 30, 2014 at 09:56:17AM -0300, Gustavo Duarte wrote:
> 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.
> 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
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
>  mailto:quozl at laptop.org
>  http://quozl.linux.org.au/
>  mailto:Sugar-devel at lists.sugarlabs.org
>  http://lists.sugarlabs.org/listinfo/sugar-devel
More information about the Sugar-devel