From 87d13342dee81ee33b728ad2326cdd70c9fd66b6 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 25 Jul 2025 12:21:00 +0300 Subject: [PATCH] applications: ensure Okular gets offered as pdf viewer --- local/share/applications/a-brave-beta.desktop | 2 +- local/share/applications/a-brave-nightly.desktop | 2 +- local/share/applications/a-brave.desktop | 2 +- local/share/applications/a-chromium.desktop | 2 +- local/share/applications/a-google-chrome.desktop | 2 +- .../applications/a-microsoft-edge-beta.desktop | 2 +- .../share/applications/a-microsoft-edge-dev.desktop | 2 +- local/share/applications/a-microsoft-edge.desktop | 2 +- local/share/applications/a-okular.desktop | 13 +++++++++++++ local/share/applications/a-vivaldi.desktop | 2 +- local/share/applications/libreawoo.desktop | 2 +- 11 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 local/share/applications/a-okular.desktop diff --git a/local/share/applications/a-brave-beta.desktop b/local/share/applications/a-brave-beta.desktop index 3a1c75b7..72d5753d 100644 --- a/local/share/applications/a-brave-beta.desktop +++ b/local/share/applications/a-brave-beta.desktop @@ -7,7 +7,7 @@ StartupNotify=true Terminal=false Icon=brave-browser-beta Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-brave-nightly.desktop b/local/share/applications/a-brave-nightly.desktop index 1109e94d..7911a60d 100644 --- a/local/share/applications/a-brave-nightly.desktop +++ b/local/share/applications/a-brave-nightly.desktop @@ -8,7 +8,7 @@ StartupNotify=true Terminal=false Icon=brave-browser-nightly Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-brave.desktop b/local/share/applications/a-brave.desktop index 98457af4..227e1078 100644 --- a/local/share/applications/a-brave.desktop +++ b/local/share/applications/a-brave.desktop @@ -7,7 +7,7 @@ StartupNotify=true Terminal=false Icon=brave-browser Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-chromium.desktop b/local/share/applications/a-chromium.desktop index 9df69a22..25d23d0f 100644 --- a/local/share/applications/a-chromium.desktop +++ b/local/share/applications/a-chromium.desktop @@ -7,7 +7,7 @@ X-MultipleArgs=false Type=Application Icon=chromium-browser Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; StartupWMClass=Chromium-browser Keywords=web;browser;internet; Actions=new-window;new-private-window; diff --git a/local/share/applications/a-google-chrome.desktop b/local/share/applications/a-google-chrome.desktop index 34568f69..3794475f 100644 --- a/local/share/applications/a-google-chrome.desktop +++ b/local/share/applications/a-google-chrome.desktop @@ -7,7 +7,7 @@ Terminal=false Icon=google-chrome Type=Application Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-microsoft-edge-beta.desktop b/local/share/applications/a-microsoft-edge-beta.desktop index dad601a1..40753101 100644 --- a/local/share/applications/a-microsoft-edge-beta.desktop +++ b/local/share/applications/a-microsoft-edge-beta.desktop @@ -7,7 +7,7 @@ Terminal=false Icon=microsoft-edge-beta Type=Application Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-microsoft-edge-dev.desktop b/local/share/applications/a-microsoft-edge-dev.desktop index 3df20b00..4ea3500c 100644 --- a/local/share/applications/a-microsoft-edge-dev.desktop +++ b/local/share/applications/a-microsoft-edge-dev.desktop @@ -7,7 +7,7 @@ Terminal=false Icon=microsoft-edge-dev Type=Application Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-microsoft-edge.desktop b/local/share/applications/a-microsoft-edge.desktop index 73746954..710524df 100644 --- a/local/share/applications/a-microsoft-edge.desktop +++ b/local/share/applications/a-microsoft-edge.desktop @@ -7,7 +7,7 @@ Terminal=false Icon=microsoft-edge Type=Application Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/a-okular.desktop b/local/share/applications/a-okular.desktop new file mode 100644 index 00000000..a6ca2562 --- /dev/null +++ b/local/share/applications/a-okular.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Terminal=false +Name=OKULAR +Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=okular --file-forwarding org.kde.okular @@u %U @@ +Icon=org.kde.okular +Type=Application +X-DocPath=okular/index.html +InitialPreference=7 +Categories=Qt;KDE;Graphics;Office;Viewer; +MimeType=application/pdf;application/vnd.kde.okular-archive; +X-DBUS-ServiceName=org.kde.okular +StartupWMClass=okular +X-Flatpak=org.kde.okular diff --git a/local/share/applications/a-vivaldi.desktop b/local/share/applications/a-vivaldi.desktop index f802af6b..db74918f 100644 --- a/local/share/applications/a-vivaldi.desktop +++ b/local/share/applications/a-vivaldi.desktop @@ -7,7 +7,7 @@ Terminal=false Icon=vivaldi Type=Application Categories=Network;WebBrowser; -MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto; +MimeType=application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto; Actions=new-window;new-private-window;Guest; [Desktop Action new-window] diff --git a/local/share/applications/libreawoo.desktop b/local/share/applications/libreawoo.desktop index a9f04419..657d1269 100644 --- a/local/share/applications/libreawoo.desktop +++ b/local/share/applications/libreawoo.desktop @@ -4,7 +4,7 @@ Name=LibreAwoo StartupNotify=true Terminal=false Type=Application -MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; +MimeType=application/json;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; Comment=LibreAwoo Browser Comment[fi]=LibreAwoo verkkoselain Comment[eo]=LibreAwoo retumiulo