Active Topics

 



Notices


Reply
Thread Tools
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:
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#2
Thanks! As always make a difference.
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#3
You. Are. Awesome. I don't even need this where I live, but nevertheless, the amount of good you bring to the Maemo 5 ecosystem is ridiculous. Whenever you end up moving on will be a sad day for the community indeed.
 

The Following 3 Users Say Thank You to Mentalist Traceur For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#4
I really don't plan on leaving anytime soon
 

The Following 8 Users Say Thank You to MohammadAG For This Useful Post:
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#5
seems you shouldn't enable it before having disabled it, on the original thread some guy ended up with reboot loop for doing it
 
Posts: 96 | Thanked: 51 times | Joined on Jul 2010 @ India
#6
I get the dialog in a window. In the screenshot, it appears in the usual yellow box. How?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:26.