Hi:

Last question (I hope :-)).  As part of the accessible install, we want 
an assistive technology to automatically launch for the associated GRUB 
item that the user selected when booting the live CD.

The way I did this earlier was add two files to the distro:

1) ~/jack/.config/autostart/live-at.desktop, which was added to 
slim_source/usr/src/cmd/slim-install/user/jack:

[Desktop Entry]
Name=Autostart Assistive Technology
Encoding=UTF-8
Version=1.0
Exec=/lib/svc/method/live-at
X-GNOME-Autostart-enabled=true

2) /lib/svc/method/live-at, which was added to 
slim_source/usr/src/cmd/slim-install/svc:

assistive_tech=prtconf -v /devices|sed -n '/assistive_tech/{;n;p;}'|cut 
-f 2 -d\'

if [ "x$assistive_tech" = xreader ]
then
     /usr/bin/orca -n -e braille-monitor -d main-window
fi
if [ "x$assistive_tech" = xmagnifier ]
then
     /usr/bin/orca -n -e magnifier -d main-window -d speech
fi

This seemed to work rather well, and gave us room for adding support for 
more assistive technologie by merely modifying the GRUB menu and 
/lib/svc/method/live-at.

I'm curious if it would be acceptable to add these as part of the 
slim_install package and also if /lib/svc/method/live-at really is the 
appropriate spot.

Thoughts?

Will

Reply via email to