View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#1
As requested here: http://talk.maemo.org/showthread.php?t=63033

At first, I was going to make a script which unloads the module, forcing a module unload isn't possible (at least to my knowledge), and it might require a reboot, so I opted for a replacement window, you can use AppLocker to hide shortcuts related to other camera apps (such as fcamera), however, I'd say one window is enough to convince the guys at uni



This is a script coupled with a GTK window, when the script is run, it:
  • Renames camera-ui in /usr/bin to camera-ui.disabled.
  • Disables the XSession startup scripts for the camera UI.
  • Copies a binary so a window with a message is displayed.
  • Kills the camera-ui daemon, so you don't have to reboot between toggles.

To use the script, run togglecamera --enable (or -e), or --disable (-d) in terminal.
Code:
Usage: togglecamera [OPTIONS]

Options:
    --enable, -e        Enable camera.
    --disable, -d        Disable camera.
    --status, -s        Check status.
    --help, -h            Show this help message.
This should be enough to fool schools and universities, at least it worked for me

Package uploaded to -devel, should be there in about 15 minutes.
 

The Following 19 Users Say Thank You to MohammadAG For This Useful Post: