Repository navigation
Factor out and improve path_to_handle() - #38
Merged
Merged
Conversation
smcv
marked this pull request as ready for review
January 8, 2021 12:35
smcv
force-pushed
the
path-to-handle
branch
2 times, most recently
from
January 19, 2021 18:58
208547e to
9e910bd
Compare
This will let us deal with arguments that are a single path, instead of a GStrv of paths. Signed-off-by: Simon McVittie <[email protected]>
Signed-off-by: Simon McVittie <[email protected]>
The Flatpak portal will reject paths that do not resolve to the same
thing in the container and on the host system. For example,
--sandbox-expose-path="$HOME/.config/my/file"
will not work, even if
--sandbox-expose-path="$HOME/.var/app/com.example.App/config/my/file"
would.
Existing apps like GNOME Web (Epiphany) get away with this because the
files they are exposing are below $XDG_CONFIG_HOME, $XDG_DATA_HOME or
$XDG_CACHE_HOME, which take values below ~/.var/app, but the same is
not necessarily going to be true for apps like Steam that use --persist.
Signed-off-by: Simon McVittie <[email protected]>
smcv
marked this pull request as draft
July 23, 2021 21:14
smcv
marked this pull request as ready for review
July 23, 2021 21:16
Member
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preparatory work for supporting flatpak/flatpak#4018
flatpak-spawn: Factor out path_to_handle()
This will let us deal with arguments that are a single path, instead
of a GStrv of paths.
flatpak-spawn: Try to normalize exposed paths to be in ~/.var/app
The Flatpak portal will reject paths that do not resolve to the same
thing in the container and on the host system. For example,
will not work, even if
would.
Existing apps like GNOME Web (Epiphany) get away with this because the
files they are exposing are below $XDG_CONFIG_HOME, $XDG_DATA_HOME or
$XDG_CACHE_HOME, which take values below ~/.var/app, but the same is
not necessarily going to be true for apps like Steam that use --persist.