{"id":1097,"date":"2023-09-04T16:09:06","date_gmt":"2023-09-04T14:09:06","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=1097"},"modified":"2023-11-29T13:08:44","modified_gmt":"2023-11-29T12:08:44","slug":"probleme-mit-flatpaks-offene-dateien-schliessen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/04\/probleme-mit-flatpaks-offene-dateien-schliessen\/","title":{"rendered":"Probleme mit Flatpaks &#8211;                Offene Dateien schlie\u00dfen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nach der Arbeit mit Flatpaks &#8211; in Verbindung mit externen Datentr\u00e4gern &#8211; treten oftmals Probleme beim Abmelden von USB-Sticks bzw. &#8211; Laufwerke auf. Ursache sind die von der Flatpak-Anwendung ge\u00f6ffneten Dateien. Wird das Flatpak-Programm geschlossen, bleiben diese Dateien jedoch weiterhin ge\u00f6ffnet. Das wiederum verhindert die korrekte Abmeldung und das Aush\u00e4ngen des USB-Sticks &#8211; Lw, auf dem die Dateien liegen. Ein trotziges Abziehen wird mit Datenverlust bis hin zum Komplett-Ausfall der Ger\u00e4te bestraft.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Flatpaks arbeiten mit dem Fuse-Dateisystem, um aus ihrer Sandbox heraus auf reale Speicherorte des Dateisystems zugreifen zu k\u00f6nnen.<br>Ist eine Flatpak-Anwendung geschlossen, kann sie diese Fuse-Einh\u00e4ngepunkte nicht mehr bedienen. Das hat zur Folge, dass diese Dateien und Ordner also weiterhin im Hintergrund &#8211; versteckt &#8211; ge\u00f6ffnet bleiben.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Der Terminal-Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsof -c xdg-doc|grep REG<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">zeigt, welche Dateien Flatpaks selbst nach deren Abschluss noch ge\u00f6ffnet halten. Selbst ein Logout &#8211; Login \u00e4ndert nichts daran.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"477\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-3.jpg\" alt=\"\" class=\"wp-image-1098\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-3.jpg 892w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-3-300x160.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-3-768x411.jpg 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Bislang sind sich die Flatpak-Entwickler \u00fcber die L\u00f6sung des Problems uneins und w\u00fcrden die Verantwortung gerne an die Desktops \u00fcbertragen\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zwischenzeitlich kann man sich damit behelfen, noch ge\u00f6ffnete Speicherorte manuell mit den Tools von <strong><em>Fuse3<\/em><\/strong> auszuh\u00e4ngen.<br>Sofern Fuse3 noch nicht installiert ist, erledigt man dies unter Debian, Ubuntu und Linux Mint via Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install fuse3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In Solus bspw. ist dieses Tool bereits vorinstalliert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die von Flatpaks noch ge\u00f6ffneten Pfade k\u00f6nnen mit folgenden Befehl ausfindig gemacht werden:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/mtab|grep fuse.portal|cut -d \" \" -f 2<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"884\" height=\"375\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-2-2.jpg\" alt=\"\" class=\"wp-image-1099\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-2-2.jpg 884w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-2-2-300x127.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-2-2-768x326.jpg 768w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Den angezeigten Pfad bspw.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/run\/user\/1000\/doc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">kann nun <strong><em>Fuse3<\/em><\/strong> mit der entsprechend angepassten Terminal-Eingabe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fusermount3 -z -u \/run\/user\/1000\/doc<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"884\" height=\"404\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-3-2.jpg\" alt=\"\" class=\"wp-image-1100\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-3-2.jpg 884w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-3-2-300x137.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-3-2-768x351.jpg 768w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">aush\u00e4ngen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Eine erneute \u00dcberpr\u00fcfung mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsof -c xdg-doc|grep REG<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"391\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-4.jpg\" alt=\"\" class=\"wp-image-1101\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-4.jpg 882w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-4-300x133.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-4-768x340.jpg 768w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">sollte nun ohne Ausgabe leer sein.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"1097\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"1097\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Nach der Arbeit mit Flatpaks &#8211; in Verbindung mit externen Datentr\u00e4gern &#8211; treten oftmals Probleme beim Abmelden von USB-Sticks bzw. &#8211; Laufwerke auf. Ursache sind die von der Flatpak-Anwendung ge\u00f6ffneten Dateien. Wird das Flatpak-Programm geschlossen, bleiben diese Dateien jedoch weiterhin ge\u00f6ffnet. Das wiederum verhindert die korrekte Abmeldung und das Aush\u00e4ngen des USB-Sticks &#8211; Lw, auf [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[82,75,83,84,85],"class_list":["post-1097","post","type-post","status-publish","format-standard","hentry","category-system","tag-fehler","tag-flatpak","tag-offene","tag-probleme","tag-usb-stick"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=1097"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1097\/revisions"}],"predecessor-version":[{"id":1102,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1097\/revisions\/1102"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=1097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=1097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}