[orca] Autostart orca if the screen-reader is enabled



commit 5ee414ef9c88c37744ffab0ecea3c623d6545ace
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 17 17:32:10 2011 +0000

    Autostart orca if the screen-reader is enabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642592

 Makefile.am               |    5 +++++
 orca-autostart.desktop.in |    8 ++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 06ba494..b3bf7ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,11 @@ update-icon-cache:
 desktopdir 	 = $(datadir)/applications
 desktop_in_files = orca.desktop.in
 desktop_DATA     = $(desktop_in_files:.desktop.in=.desktop)
+
+autostartdir	 = $(sysconfdir)/xdg/autostart
+autostart_in_files = orca-autostart.desktop.in
+autostart_DATA   = $(autostart_in_files:.desktop.in=.desktop)
+
 @INTLTOOL_DESKTOP_RULE@
 
 EXTRA_DIST =                \
diff --git a/orca-autostart.desktop.in b/orca-autostart.desktop.in
new file mode 100644
index 0000000..98bdd48
--- /dev/null
+++ b/orca-autostart.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Orca screen reader
+Exec=orca --no-setup --disable main-window --disable splash-window --disable magnifier --enable speech --enable braille
+NoDisplay=true
+AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-reader-enabled
+X-GNOME-AutoRestart=true
+#X-GNOME-Autostart-Phase=Initialization



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]