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

James Cameron quozl at laptop.org
Mon Sep 29 17:14:15 EDT 2014


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/


More information about the Sugar-devel mailing list