Added missing files

svn path=/trunk/; revision=7486
This commit is contained in:
Rodrigo Moya 2007-04-23 17:28:52 +00:00
parent c246e6aa6c
commit 0d8fd1c667
5 changed files with 163 additions and 0 deletions

View file

@ -0,0 +1,15 @@
[Desktop Entry]
Encoding=UTF-8
_Name=Preferred Assistive Technology
_Comment=Enable support for GNOME assistive technologies at login
Exec=gnome-default-applications-properties
Icon=gnome-settings-accessibility-technologies
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Settings;Accessibility;
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=control-center
X-GNOME-Bugzilla-Component=other capplets
X-GNOME-Bugzilla-Version=@VERSION@

View file

@ -0,0 +1,102 @@
#!/bin/sh
#
# Copyright 2006 IBM Corp.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
#
###############################################################################
#
# NOTE: This script is intended to be run from the command line,
# GNOME menu, or from the desktop autostart.
#
# /usr/bin/gnome-at-visual
# /usr/bin/gnome-at-mobility
#
# If the "-s" flag is used then it is assumed to have been invoked
# from /usr/share/gnome/autostart/, and the first AT flagged
# to "startup" from GCONF_ALL will be executed.
#
USAGE="$0 [-s]"
GCONF_PATH=/desktop/gnome/applications/at
GCONF_VISUAL="visual"
GCONF_MOBILITY="mobility"
GCONF_ALL="$GCONF_VISUAL $GCONF_MOBILITY"
run_at() {
CMDLINE=$(gconftool-2 --get $GCONF_PATH/$1/exec)
if [ $? -ne 0 ]; then
exit $?
fi
if [ -z "$CMDLINE" ]; then
exit 2
fi
STARTUP=$(gconftool-2 --get $GCONF_PATH/$1/startup)
if [ $? -ne 0 ]; then
exit $?
fi
if [ ! -z "$AUTOSTART" ]; then
# assuming ran from /usr/share/gnome/autostart
if [ "$STARTUP" == "true" ]; then
# gconf indicated requested autostart
($CMDLINE &)
fi
else
# run from command line or desktop menu
($CMDLINE &)
fi
}
case $(basename $0) in
gnome-at-visual )
AT=$GCONF_VISUAL
;;
gnome-at-mobility )
AT=$GCONF_MOBILITY
;;
gnome-at-session | * )
AUTOSTART="yes"
AT=$GCONF_ALL
;;
esac
while getopts "s" options; do
case $options in
s ) AUTOSTART="yes"
AT=$GCONF_ALL
shift
;;
\? ) echo $USAGE
exit 1
;;
* ) echo $USAGE
exit 1
;;
esac
done
if [ $# -ne 0 ]; then
echo $USAGE
exit 1
fi
for I in $AT ; do
run_at $I
done
#EOF

View file

@ -0,0 +1,15 @@
[Desktop Entry]
Encoding=UTF-8
_Name=Mobility AT
_Comment=Run the the preferred GNOME Mobility Assitive Technology
Exec=gnome-at-mobility
Icon=icon-accessibility
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Settings;Accessibility;
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=control-center
X-GNOME-Bugzilla-Component=other capplets
X-GNOME-Bugzilla-Version=@VERSION@

View file

@ -0,0 +1,16 @@
[Desktop Entry]
Encoding=UTF-8
_Name=Visual
_Comment=Autostart the preferred AT
Exec=gnome-at-visual -s
Icon=gnome-searchtool
Terminal=false
Type=Application
StartupNotify=true
Categories=
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=control-center
X-GNOME-Bugzilla-Component=other capplets
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Autostart-enabled=true

View file

@ -0,0 +1,15 @@
[Desktop Entry]
Encoding=UTF-8
_Name=Visual AT
_Comment=Run the the preferred GNOME Visual Assistive Technology
Exec=gnome-at-visual
Icon=gnome-searchtool
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Settings;Accessibility;
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=control-center
X-GNOME-Bugzilla-Component=other capplets
X-GNOME-Bugzilla-Version=@VERSION@