Skip to content
Commit 6692c874 authored by Simon McVittie's avatar Simon McVittie Committed by Alexander Larsson
Browse files

utils: Remap /run/flatpak/app, for Flatpak 1.11.x



Flatpak 1.11.x avoids mounting anything into the app-controlled
XDG_RUNTIME_DIR, so $XDG_RUNTIME_DIR/app in the container shows up as
a symlink to /run/flatpak/app. This particularly affects apps that
set TMPDIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID and use the URI portal
to request that a file in /tmp gets opened on the host.

Manual test:

    (run any Flatpak app with --command=bash)
    echo "hello" > $XDG_RUNTIME_DIR/app/$FLATPAK_ID/readme.txt
    xdg-open $XDG_RUNTIME_DIR/app/$FLATPAK_ID/readme.txt

Resolves: #589
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 89d21970
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment