Repository navigation
Conversation
The needed locations are documented at https://github.com/typst/packages/tree/main This configuration may be incomplete and may need further approval from snapcraft admins that should be requested in the forum.
|
Thank you, this seems relevant to this Discord thread, where a user who installed Typst through Snap couldn't access packages: https://discord.com/channels/1054443721975922748/1257748769257295872 |
reknih
left a comment
There was a problem hiding this comment.
Thank you for the PR! I tried to troubleshoot it for a few hours today and was not able to get it working. The Snapcraft.yaml modification you shared works and can connect its plugs using snap connect typst:dot-local-share-typst and so forth but Typst will still fail to discover private packages. I have posted to this effect on the Snapcraft Forum and await their response.
| plugs: | ||
| dot-local-share-typst: | ||
| interface: personal-files | ||
| write: |
There was a problem hiding this comment.
This directory only needs read access
| write: | |
| read: |
|
This will ignore |
Snap apps don't have access by default to hidden files, even to those in the user dir. Typst uses ~/.local/share/typst and ~/.cache/typst for package management and without access to those, local packages or previously downloaded packages can't be used.
The needed package locations are documented at https://github.com/typst/packages/tree/main
The proposed configuration is untested and may be incomplete (sorry, I'm just a snap user). Also, it may need further approval from snapcraft admins so the plugs can be automatically automounted for Typst. This permission should be requested, AFAICT, in the forum. The config and the approval proccess are documented in the personal-files interface documentation here: https://snapcraft.io/docs/personal-files-interface