Quick access for Covid certificate

Hi,

I need to access my covid certificate and I’d like to create a shortcut.
I tried to add to grid local file but it didn’t work (file:///home/nemo/Documents/covid_pass > add to favorites > add to grid)
Is there another way to do that ?

Where/how exactly are you doing this?
The browser? Is that what you want to happen?

What format is it? Not a PDF?

I have pdf and png.

  • Open the web browser
  • Go to your file : file:///home/nemo/Documents/covid_pass
  • Add to your favorites
  • Open favorites
  • Pulley menu : add to grid

Browser seems like a bad way to do it. Probably the slowest app, most likely to be used for something else, and doesn’t do PDF…
Maybe try barwal as per Covpass - Vaccination status App? - #81 by amaretzek

Or you could bake your own .desktop file that invokes sailfish-office or jolla-gallery with the appropriate file as argument. You’d put that in /usr/share/applications/ or ~/.local/share/applications/

Not tested, but something like this probably (also see existing files for examples):

[Desktop Entry]
Type=Application
Name=Documents
Icon=<some icon name or path>
Exec=<what you want to run>

Maybe xdg-open /path/to/your/cert.pdf is the best Exec value, since that triggers the default open action and thus keeps to a single-instance of e.g. sailfish-office.

4 Likes

It works :+1:

[Desktop Entry]
Type=Application
Name=Documents
Icon=icon-m-document
Exec=xdg-open /path/to/your/cert.pdf
2 Likes

BTW, other icons at https://sailfishos.org/develop/docs/jolla-ambient/ which may be appropriate (in addition to icon-m-document):

1 Like