#!/bin/bash
#
# Author: Roland Kluge
# Date:	  02 Jan 2012
#
# The following instructions need to be performed after downloading:
#
#	sudo mv /usr/lib/kde4/libexec/kscreenlocker /usr/lib/kde4/libexec/kscreenlocker_original
#	mv ./Kscreenlocker.sh ./kscreenlocker
#	sudo mv ./kscreenlocker /usr/lib/kde4/libexec/
#	sudo chown root:root /usr/lib/kde4/libexec/kscreenlocker
#	sudo chmod 755 /usr/lib/kde4/libexec/kscreenlocker
#

parameters=$@
# This strange line replaces all occurrences of '--forcelock' with the empty string
modified_parameters=${parameters//--forcelock}" --dontlock"

# If you come to decide that you can trust me, remove the echo statement and the
# quotes from the following line.
echo "/usr/lib/kde4/libexec/kscreenlocker_original "${modified_parameters} 

