aboutsummaryrefslogtreecommitdiff
path: root/misc/xvnkb/profile.d
diff options
context:
space:
mode:
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 0000000000000..fb54b48630990
--- /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 0000000000000..4bebaabd55bae
--- /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