Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

minor fixes for edge cases #2

Open
wants to merge 4 commits into from

2 participants

@RunningDroid

These commits do the same thing as etam's commit, but without the Makefile.

@etam

library in LD_PRELOAD must be either in LD_LIBRARY_PATH or pointed by absolute path. So if you removed LD_LIBRARY_PATH, then LD_PRELOAD must be ${PWD}/libcursorfix.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 21, 2012
  1. add a .gitignore, so .so's and .o's don't mess with git

    RunningDroid authored
  2. add dependency check

    RunningDroid authored
Commits on Dec 22, 2012
  1. add ${PWD} to LD_PRELOAD

    RunningDroid authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 3 deletions.
  1. +2 −0  .gitignore
  2. +5 −3 cursorfix.sh
View
2  .gitignore
@@ -0,0 +1,2 @@
+*.so
+*.o
View
8 cursorfix.sh
@@ -4,6 +4,8 @@ if ! test -f libcursorfix.so; then
gcc -shared -o libcursorfix.so cursorfix.c -ldl -fPIC -m32 || exit 1
fi
-export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)"
-
-LD_PRELOAD=libcursorfix.so steam
+if $(which steam > /dev/null); then
+ LD_PRELOAD=${PWD}/libcursorfix.so steam
+else
+ return 1
+fi
Something went wrong with that request. Please try again.