Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Jun 2011
#11
Originally Posted by Iktwo View Post
A virus? come on! This is a great idea, and very useful, as you can't think on a use of this I can't think on someone that consider this a virus..

I'm not a maemo developper but I think I might have a tiny idea, I remember I saw something like make a call via d-bus (hope it was that and not only send an sms) well if we can make a call in the terminal via dbus then we can kill the process after some time with a not so hard to code script, I will be very interested in this app, I think I will search more info a give it a try..

EDIT:
Ok now I've got something..

first of all to call via dbus:

dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0

then to hang up:

dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.Release

I'm working on timing the hang up and tomorrow I'll try to make a UI but I think I'll need help

So sleep x doesn't work, any ideas of how to time an event? or why sleep doesn't work?
I have a solution for this. I created a script in sh. Another person for to write a app GUI?, I'm not experienced with qt4. My english is poor, I'm sorry.

#!/bin/bash

dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0 &
sleep $2
dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.Release &
 
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#12
A new app just came out called kall (search for it) it kills calls after a chosen time.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:59.