Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sources: add flatpak specific paths #128

Merged
merged 3 commits into from May 12, 2020
Merged

Sources: add flatpak specific paths #128

merged 3 commits into from May 12, 2020

Conversation

@bilelmoussaoui
Copy link
Contributor

bilelmoussaoui commented Feb 18, 2020

I'm working on a font manager that uses font-kit and distributed using Flatpak, this patch should allow reading fonts from outside the sandboxed too if the access to the path is given using --filesystem=/usr/share/fonts:ro in the application manifest.

The path is mounted later under /var/host/run/$path

Flatpak restrict access to any filesystem and mounts it to /var/run/host if asked for.
This should allow building sandboxed apps that uses font-kit to load the user fonts if it has access to that.
~/.fonts is now deprecated
adds $XDG_DATA_HOME/fonts which is the new local fonts  directory
Flatpak re-defines $XDG_DATA_HOME to  ˙~/.var/app/$app-id/data/` for sandboxing reasons
This adds the local path manually too by creating it from $HOME
@jdm jdm merged commit a9514c0 into servo:master May 12, 2020
0 of 2 checks passed
0 of 2 checks passed
Travis CI - Pull Request Build Failed
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@jdm
Copy link
Member

jdm commented May 12, 2020

Thanks!

@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui:patch-1 branch May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.