Draft support for a customizations directory.
Michael Stone
michael at laptop.org
Tue Jun 10 23:57:24 EDT 2008
---
olpc-session | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/olpc-session b/olpc-session
index 2e3a4b7..280f4be 100755
--- a/olpc-session
+++ b/olpc-session
@@ -23,14 +23,19 @@ LANG="en_US.UTF-8"
XKB_LAYOUT="us"
# We need to stop loading of certain GTK Input Modules (d.l.o #6945)
GTK_IM_MODULE="gtk-im-context-simple"
+CUST=$HOME/customizations
# enable internationalization
-[ -f "$HOME/.i18n" ] && . "$HOME/.i18n"
+for f in $CUST/i18n $HOME/.i18n; do
+ [ -f "$f" ] && . "$f" && break
+done
export LANG
# load keyboard settings
[ -f "/etc/sysconfig/keyboard" ] && . "/etc/sysconfig/keyboard"
-[ -f "$HOME/.kbd" ] && . "$HOME/.kbd"
+for f in $CUST/kbd $HOME/.kbd; do
+ [ -f "$f" ] && . "$f" && break
+done
export GTK_IM_MODULE
# set mouse & keyboard speed
--
1.5.3.3
More information about the Devel
mailing list