Desktop quicklink/widget to call a contact or open a file

I have posted this earlier somewhere but not as a feature request by itself so here it goes.

My everyday use scenario is that I have to use call forwarding in certain situations at work to be reachable from another phone. In android phones one can make a simple widget pointing to certain number in your contact list and I used that feature to make/remove the call forwarding with a single press of an icon. Very simple.

In Sailfish OS one has to select contacts > find the contact (if not starred to top) > select the number in that contact so there are more steps to do which is quite annoying.

Is there a way in general to make any kind of a links to files to the desktop? Like for example if I have covid-19 vaccination passport as a PDF-file which I would like to have on desktop for quick access. Is this possible?

1 Like

Hi. You can achieve that by creating *.desktop file in .local/share/applications/ directory. Just put xdg-open with desired uri to Exec property. For call: xdg-open tel:1234

1 Like

Thanks! Was searching too.
But I get no results.
Would you have an example file and also,
I understand the directory is this one:
/home/defaultuser/.local/share/applications/

As ric9k mentioned above there are no new links visible on desktop but when executing the commands from the terminal they seem to work so there is some part missing still. Some permission thing perhaps?

Ok, I think I found the solution from this forum to my 2nd question:
https://forum.sailfishos.org/t/quick-access-for-covid-certificate/7962/4

The call forwarding thing however does not work completely as the string after the tel-part ignores all symbols which are needed when using the call forwarding. (**21*number# to enable forwarding and ##21# to disable it)

EDIT: Also even if one makes a simple link to an ordinary phone number without any symbols, it hangs to a spinning wheel around phone-symbol.

I haven’t tried it for call forwarding, but for a simple phone number it’s possible to add a shortcut for calling in the app grid:

  • in the favourites list of the browser: longpress a favourite and select add to app grid
  • change title (e.g. call Home) and web address (e.g. tel: +31 26 123 45 67) and Save
2 Likes

Yes, it should be possible to store url to home grid from the Browser…

From command line, you need to do this:

mkdir -p .local/share/applications/

echo "[Desktop Entry]
Type=Application
Name=Call mum
Icon=icon-launcher-phone
Exec=/usr/bin/xdg-open tel:123456789" > .local/share/applications/call-mum.desktop

update-desktop-database .local/share/applications

2 Likes

Tu sum up, what works to make a shortcut to a phonecall into the app grid is:
Create a file in /home/defaultuser/.local/share/applications/.
Into this file, place:

[Desktop Entry]
Type=Application
Name=Deviation to Dummy
Icon=icon-m-call
Exec=xdg-open tel:+123456789

For call forwarding, I also tried (\# and "#" and '#') but without success.
EDIT oops, writing at the same time as @karry…

But still, these are not desktop/homescreen shortcuts but app grid ones.
Is it possible to make a desktop shortcut in SF?