We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-09-24 22:09:00 +0200

Help me make "dial from launcher" better

I come from the N9 and had a little *.desktop file there that allowed me to call a certain number by tapping an icon from the launcher. I tried to copy its behavior like so:

[Desktop Entry]
Name=Order Pizza
Comment=Tap when hungry
Icon=/home/nemo/Pictures/pizza.png
Exec=gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '0199999999'
Terminal=false
Type=Application
Categories=Utility;

This will call the number '0199999999' immediately after I touched the icon. Nice, but not always what I want.

I'd like to have two additional possibilities:

  1. Open the call-UI with the number already filled in, but wait for me to press "dial" (just as a security measure)
  2. Open the contact card that the number belongs to, also highlight the number if the contact has more than one, wait for me to press either "call" or "sms"... or choose another item from the list

Or, as an alternative to point 2, just call the contact card by using the name or any other parameter that will do.

The question might seem odd given I already have got dbus magic working... problem is I have not the faintest idea what I did there with gdbus. IIRC, I found it in some IRC logs and copypasted it without really knowing what it is. :)

Anyone here who could help me with 1. or 2. or both? :)

Help me make "dial from launcher" better

I come from the N9 and had a little *.desktop file there that allowed me to call a certain number by tapping an icon from the launcher. I tried to copy its behavior like so:

[Desktop Entry]
Name=Order Pizza
Comment=Tap when hungry
Icon=/home/nemo/Pictures/pizza.png
Exec=gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '0199999999'
Terminal=false
Type=Application
Categories=Utility;

(File is pizza.desktop and is lives in /home/nemo/.local/share/applications/)

This will call the number '0199999999' immediately after I touched the icon. Nice, but not always what I want.

I'd like to have two additional possibilities:

  1. Open the call-UI with the number already filled in, but wait for me to press "dial" (just as a security measure)
  2. Open the contact card that the number belongs to, also highlight the number if the contact has more than one, wait for me to press either "call" or "sms"... or choose another item from the list

Or, as an alternative to point 2, just call the contact card by using the name or any other parameter that will do.

The question might seem odd given I already have got dbus magic working... problem is I have not the faintest idea what I did there with gdbus. IIRC, I found it in some IRC logs and copypasted it without really knowing what it is. :)

Anyone here who could help me with 1. or 2. or both? :)