{"id":1399,"date":"2025-08-04T19:33:11","date_gmt":"2025-08-04T17:33:11","guid":{"rendered":"https:\/\/unordnung.net\/misc\/?p=1399"},"modified":"2025-08-04T19:33:12","modified_gmt":"2025-08-04T17:33:12","slug":"kioexec-firefox-snap-access-denied-kde","status":"publish","type":"post","link":"https:\/\/unordnung.net\/misc\/2025\/08\/kioexec-firefox-snap-access-denied-kde\/","title":{"rendered":"kioexec firefox snap access denied kde"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">KDE + Snap-Firefox: \u201eAccess to the file was denied\u201c bei lokalen HTML-Dateien<\/h1>\n\n\n\n<p>Unter <strong>KDE Plasma<\/strong> kann es vorkommen, dass lokale <code>.html<\/code>-Dateien nicht mehr im <strong>Snap-Firefox<\/strong> ge\u00f6ffnet werden. Stattdessen erscheint die Fehlermeldung:<\/p>\n\n\n\n<p>W\u00e4hrend Webseiten normal im Browser aufgehen, schlagen lokale HTML-Dateien mit diesem Fehler fehl.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Ursache: KDE + kioexec + Snap-Sandbox<\/h2>\n\n\n\n<p>Das Problem liegt nicht an Firefox selbst, sondern an der Kombination aus <strong>KDE<\/strong>, <strong>kioexec<\/strong> und der <strong>Snap-Sandbox<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>KDE startet lokale Dateien standardm\u00e4\u00dfig \u00fcber <code>kioexec<\/code>.<\/li>\n\n\n\n<li><code>kioexec<\/code> kopiert die Datei in einen tempor\u00e4ren Pfad wie <code>~\/.cache\/kioexec\/krun\/...<\/code>.<\/li>\n\n\n\n<li>Snap-Firefox l\u00e4uft in einer Sandbox und hat keinen Zugriff auf diesen Cache-Ordner.<\/li>\n\n\n\n<li>Ergebnis: <em>\u201eAccess to the file was denied\u201c<\/em>.<\/li>\n<\/ul>\n\n\n\n<p>Zus\u00e4tzlich k\u00f6nnen Programme wie <strong>Wine (winebrowser.exe)<\/strong> die Browser-Zuordnung \u00fcberschreiben und f\u00fcr zus\u00e4tzliche Verwirrung sorgen, wenn pl\u00f6tzlich statt Firefox ein falscher Handler eingetragen wird.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Debugging-Schritte<\/h2>\n\n\n\n<p>Um die Fehlerquelle einzugrenzen, haben wir folgende Kette genutzt:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Pr\u00fcfen, welcher Default-Browser hinterlegt ist<\/strong><br>&#8220;`bash<br><code>xdg-settings get default-web-browser<\/code><\/li>\n<\/ol>\n\n\n\n<p><em>&#8211; ergab <code>geany.desktop<\/code> statt Firefox. lol<\/em><\/p>\n\n\n\n<p><code>xdg-mime query default x-scheme-handler\/http<br>xdg-mime query default text\/html<\/code><\/p>\n\n\n\n<p><em>&#8211; HTTP\/HTTPS stand auf Firefox, aber <code>text\/html<\/code> war falsch.<\/em><\/p>\n\n\n\n<p><code>ls \/var\/lib\/snapd\/desktop\/applications\/ | grep firefox<br>cat \/var\/lib\/snapd\/desktop\/applications\/firefox_firefox.desktop | grep MimeType<\/code><\/p>\n\n\n\n<p><em> best\u00e4tigt: <code>firefox_firefox.desktop<\/code> existiert und enth\u00e4lt <code>text\/html<\/code>.<\/em><\/p>\n\n\n\n<p><code>xdg-open index.html<\/code><\/p>\n\n\n\n<p><em> f\u00fchrte direkt zur Fehlermeldung \u201eAccess to the file was denied\u201c durch <code>kioexec<\/code>.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Loesung<\/h2>\n\n\n\n<p>Der Fix besteht darin, KDE anzuweisen, Firefox direkt mit der Datei aufzurufen, ohne Umweg \u00fcber <code>kioexec<\/code>. Das geht mit:<\/p>\n\n\n\n<p><code>kwriteconfig5 --file kdeglobals --group General --key BrowserApplication \"firefox %u\"<\/code><\/p>\n\n\n\n<p><code>kquitapp5 plasmashell &amp;&amp; kstart5 plasmashell<\/code><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>KDE + Snap-Firefox: \u201eAccess to the file was denied\u201c bei lokalen HTML-Dateien Unter KDE Plasma kann es vorkommen, dass lokale .html-Dateien nicht mehr im Snap-Firefox ge\u00f6ffnet werden. Stattdessen erscheint die Fehlermeldung: W\u00e4hrend Webseiten normal im Browser aufgehen, schlagen lokale HTML-Dateien mit diesem Fehler fehl. Ursache: KDE + kioexec + Snap-Sandbox Das Problem liegt nicht an &#8230; <a title=\"kioexec firefox snap access denied kde\" class=\"read-more\" href=\"https:\/\/unordnung.net\/misc\/2025\/08\/kioexec-firefox-snap-access-denied-kde\/\">Read more<span class=\"screen-reader-text\">kioexec firefox snap access denied kde<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[138,96,46,137],"class_list":["post-1399","post","type-post","status-publish","format-standard","hentry","category-to_remember","tag-fix","tag-kde","tag-linux","tag-snap"],"_links":{"self":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/1399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":1,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/1399\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/1399\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/categories?post=1399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}