aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/021_add-nxauth-wrapper.full.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/021_add-nxauth-wrapper.full.patch')
-rw-r--r--debian/patches/021_add-nxauth-wrapper.full.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/patches/021_add-nxauth-wrapper.full.patch b/debian/patches/021_add-nxauth-wrapper.full.patch
index 6e3ea8389..80bcde643 100644
--- a/debian/patches/021_add-nxauth-wrapper.full.patch
+++ b/debian/patches/021_add-nxauth-wrapper.full.patch
@@ -1,6 +1,6 @@
--- /dev/null
+++ b/bin/nxauth
-@@ -0,0 +1,25 @@
+@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# Copyright (C) 2012 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
@@ -22,6 +22,10 @@
+NX_LOCAL_LIBS=/usr/local/lib/nx
+LD_LIBRARY_PATH=$NX_LIBS:$NX_LIBS/X11:$NX_LOCAL_LIBS:$NX_LOCAL_LIBS/X11:$LD_LIBRARY_PATH
+
++# make sure nxagent starts properly with pam_tmpdir.so being in use
++NX_TEMP=${NX_TEMP:-/tmp}
++export NX_TEMP
++
+test -d $NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH
+