summaryrefslogtreecommitdiff
path: root/misc/xvnkb/profile.d
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2010-10-24 22:15:29 -0400
committerErik Hanson <erik@slackbuilds.org>2010-10-25 07:55:10 -0500
commit455281380ff95cae6c5909257832830d95301f12 (patch)
tree8e826a4761e1407f72b84b99b8d280d0cf372e0d /misc/xvnkb/profile.d
parente1347bc2f46376629fce901bc8f7338d28a9c17e (diff)
downloadslackbuilds-455281380ff95cae6c5909257832830d95301f12.tar.gz
misc/xvnkb: Added (Vietnamese keyboard input for X-Window)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/xvnkb/profile.d')
-rw-r--r--misc/xvnkb/profile.d/xvnkb.csh7
-rw-r--r--misc/xvnkb/profile.d/xvnkb.sh8
2 files changed, 15 insertions, 0 deletions
diff --git a/misc/xvnkb/profile.d/xvnkb.csh b/misc/xvnkb/profile.d/xvnkb.csh
new file mode 100644
index 0000000000..fb54b48630
--- /dev/null
+++ b/misc/xvnkb/profile.d/xvnkb.csh
@@ -0,0 +1,7 @@
+#!/bin/csh
+# xvnkb.so need to be preloaded for xvnkb to work
+if ( $?LD_PRELOAD ) then
+ setenv LD_PRELOAD ${LD_PRELOAD}:/usr/lib/xvnkb.so
+else
+ setenv LD_PRELOAD /usr/lib/xvnkb.so
+endif
diff --git a/misc/xvnkb/profile.d/xvnkb.sh b/misc/xvnkb/profile.d/xvnkb.sh
new file mode 100644
index 0000000000..4bebaabd55
--- /dev/null
+++ b/misc/xvnkb/profile.d/xvnkb.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# xvnkb.so need to be preloaded for xvnkb to work
+if [ ! "$LD_PRELOAD" = "" ]; then
+ LD_PRELOAD=$LD_PRELOAD:/usr/lib/xvnkb.so
+else
+ LD_PRELOAD=/usr/lib/xvnkb.so
+fi
+export LD_PRELOAD