maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   dbus command on SailfishOS? (https://talk.maemo.org/showthread.php?t=93572)

yaliang 2014-08-13 03:18

dbus command on SailfishOS?
 
hey gays .i need dbus command to control the phone just like this http://wiki.maemo.org/Phone_control . anybody can rewrite the command?

nieldk 2014-08-13 05:09

Re: dbus command on SailfishOS?
 
it is not very well (if at all) documented, but You can find inspiration for digging into it a few places

http://talk.maemo.org/showthread.php?t=92303

https://together.jolla.com/question/...tion-anywhere/

yaliang 2014-08-15 03:26

Re: dbus command on SailfishOS?
 
em.....i succeed to launch camera by accident.

Code:

dbus-send --session --type=method_call --dest=com.jolla.camera /com/jolla/camera/ui com.jolla.camera

yaliang 2014-08-15 03:31

Re: dbus command on SailfishOS?
 
well , i edit /etc/mce/10mce.ini .
Code:

PowerKeyShortAction=dbus-send --session --type=method_call --dest=com.jolla.camera /com/jolla/camera/ui com.jolla.camera
but it doesnt work. PowerKeyShortAction is tklock still.(i have reboot)
what is the wrong ? does it need refresh?


EDIT:wrong action.thanks @coderus


All times are GMT. The time now is 10:29.

vBulletin® Version 3.8.8