From cce8d878ec399ae97b81ef6ca19907d2a1723903 Mon Sep 17 00:00:00 2001 From: Alan Sikora Date: Sun, 8 Mar 2026 23:42:01 -0300 Subject: [PATCH] Decode octal-escaped mountpoints and disown backgrounded restart /proc/mounts uses octal escaping for special characters (e.g. \040 for spaces). Decode with printf before passing to fusermount so paths with spaces are handled correctly. Add disown after backgrounding the gvfs restart so it survives systemd-sleep's cgroup cleanup when the hook script exits. --- default/systemd/system-sleep/unmount-fuse | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default/systemd/system-sleep/unmount-fuse b/default/systemd/system-sleep/unmount-fuse index 64444c1d..125f4cc8 100755 --- a/default/systemd/system-sleep/unmount-fuse +++ b/default/systemd/system-sleep/unmount-fuse @@ -8,6 +8,7 @@ if [[ $1 == "pre" ]]; then while IFS=' ' read -r _ mountpoint fstype _; do if [[ $fstype == fuse.* ]]; then + mountpoint=$(printf '%b' "$mountpoint") fusermount3 -uz "$mountpoint" 2>/dev/null || fusermount -uz "$mountpoint" 2>/dev/null || true fi done < /proc/mounts @@ -28,4 +29,5 @@ if [[ $1 == "post" ]]; then fi done ) & + disown fi