I was looking for a way to "lock" applications with a password but I could only find one that hides the apps so I just hacked up a small script.
My original intention was to prevent people from taking my phone and playing Angry Birds >:[
Code:
#!/bin/sh
PASS="password"
read -p "Password please: " pw
if [ $PASS = $pw ]; then
echo "Program will be run."
# program to run here
else
read -p "Password incorrect."
fi
Save this to a file, for example ~/bin/launch_program
of course it doesn't prevent anyone from just directly launching the command nor does it prevent someone from checking the password but chances are no one you knwo will figure out what to do.
You'll have to change the launch command in /usr/share/applications/hildon/<program>.desktop from Exec=whatever to
We really need fast user switching. Then you can just unset some execute bits. Also, a guest is going to want to browse, but who wants to share their saved cookies with anyone?
My original intention was to prevent people from taking my phone and playing Angry Birds >:[
of course it doesn't prevent anyone from just directly launching the command nor does it prevent someone from checking the password but chances are no one you knwo will figure out what to do.
You'll have to change the launch command in /usr/share/applications/hildon/<program>.desktop from Exec=whatever to
If there's something to do this already, then I'm an ignorant monkey and deserve a slap.