Thread
:
How to do something to make cmd-shortcuts be root ?
View Single Post
nicholes
2011-04-10 , 15:44
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#
2
i use shorcut maker (but did not work with rooot) actually i am also looking somethig wich can make a shortcut for rooted cmd and one for python
here are code i want to make shortcut for them
1> echo 0 >/sys/class/backlight/acx565akm/brightness (need sudo gainroot)
2>from my own thread where nicolai helped me to make n900's camera a spy cam(thanks to nicolai)
http://talk.maemo.org/showthread.php?t=71326&page=2
python
import gst
bin = gst.element_factory_make("camerabin")
bin.set_property("videoenc", gst.element_factory_make("dspmp4venc"))
bin.set_property("videomux", gst.element_factory_make("hantromp4mux"))
bin.set_property("audioenc", gst.element_factory_make("nokiaaacenc"))
bin.set_state(gst.STATE_PLAYING)
bin.set_property("filename", "test.mp4")
bin.set_property("mode",1)
#starts recording
bin.emit("user-start")
# wait some time
# stops recording
bin.emit("user-stop")
bin.set_state(gst.STATE_PAUSED)
bin.set_state(gst.STATE_NULL)
Quote & Reply
|
The Following User Says Thank You to nicholes For This Useful Post:
cooperpeng
nicholes
View Public Profile
Send a private message to nicholes
Find all posts by nicholes