3
# Copyright 2006 IBM Corp.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of version 2 of the GNU General Public License
7
# as published by the Free Software Foundation
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
18
###############################################################################
20
# NOTE: This script is intended to be run from the command line,
21
# GNOME menu, or from the desktop autostart.
23
# /usr/bin/gnome-at-visual
24
# /usr/bin/gnome-at-mobility
26
# If the "-s" flag is used then it is assumed to have been invoked
27
# from /usr/share/gnome/autostart/, and the first AT flagged
28
# to "startup" from GCONF_ALL will be executed.
32
GCONF_PATH=/desktop/gnome/applications/at
34
GCONF_MOBILITY="mobility"
35
GCONF_ALL="$GCONF_VISUAL $GCONF_MOBILITY"
38
CMDLINE=`gconftool-2 --get $GCONF_PATH/$1/exec`
43
if [ -z "$CMDLINE" ]; then
47
STARTUP=`gconftool-2 --get $GCONF_PATH/$1/startup`
52
if [ ! -z "$AUTOSTART" ]; then
53
# assuming ran from /usr/share/gnome/autostart
54
if [ "x$STARTUP" = "xtrue" ]; then
55
# gconf indicated requested autostart
59
# run from command line or desktop menu
71
gnome-at-session | * )
77
while getopts "s" options; do