From c68c40c69105f3ba0d2453f2885da60dfcfd4172 Mon Sep 17 00:00:00 2001 From: Marc Ferland Date: Wed, 4 Sep 2024 13:53:09 -0400 Subject: [PATCH] okular: fix file association While playing around with the "Screenshot" action from the action drawer in plasma-mobile, I discovered that if you try the open the image (by pressing the image icon from the screen shot popup) it would automatically call okular and _not_ okularkirigami. This is caused okularApplication_*.desktop files all pointing to okular instead of okularkirigami. Extending the dirty hack to these files fixes the issue. Signed-off-by: Marc Ferland --- recipes-application/graphics/okular.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-application/graphics/okular.inc b/recipes-application/graphics/okular.inc index 4c70759..c3c53d9 100644 --- a/recipes-application/graphics/okular.inc +++ b/recipes-application/graphics/okular.inc @@ -42,6 +42,7 @@ EXTRA_OECMAKE += " \ # dirty hack to force the mobile version and hide the desktop one do_install:append() { sed -i 's/Exec=okular %U$/Exec=okularkirigami %U/g' ${D}${datadir}/applications/org.kde.okular.desktop + sed -i 's/Exec=okular %U$/Exec=okularkirigami %U/g' ${D}${datadir}/applications/okularApplication_*.desktop } # note: okularkirigami is the dedicated mobile version