aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/022_add-nxproxy-wrapper.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/022_add-nxproxy-wrapper.patch')
-rw-r--r--debian/patches/022_add-nxproxy-wrapper.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/patches/022_add-nxproxy-wrapper.patch b/debian/patches/022_add-nxproxy-wrapper.patch
index cedfde399..53b0c2959 100644
--- a/debian/patches/022_add-nxproxy-wrapper.patch
+++ b/debian/patches/022_add-nxproxy-wrapper.patch
@@ -19,9 +19,10 @@
+# along with this program. If not, see http://www.gnu.org/licenses/.
+
+NX_LIBS=/usr/lib/nx
-+LD_LIBRARY_PATH=/usr/lib/nx:/usr/lib/nx/X11:$LD_LIBRARY_PATH
++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
+
-+export NX_LIBS
++test -d NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH
+
-+exec /usr/lib/nx/nxproxy "$@"
++exec $NX_LIBS/nxproxy "$@"