3 # XGrabControl, part of XGrabControl.
4 # (c) 2011, en passant development.
6 # This is a simple wrapper script for XGrabControl.
7 # Either source it or use it:
9 # or use it as a program running helper:
10 # XGrabControl program arg1 arg2 ...
13 # Insert ourselves into LD_PRELOAD if we are not there yet.
14 if echo $LD_PRELOAD | grep -q "libXGrabControl\.so"
16 echo "XGrabControl: Already in LD_PRELOAD."
18 echo "XGrabControl: Adding to LD_PRELOAD."
19 export LD_PRELOAD="libXGrabControl.so $LD_PRELOAD"
22 # If any arguments were given, pass them on to the shell.