Skip to content

Typst Snap package cannot serve live HTML #4

@jadonk

Description

@jadonk

Description

I'm using Ubuntu 24.04 and the typst snap as the default version of rust is a bit old and typst isn't packaged in the distro.

I'm looking to try the WIP feature of serving up an HTML page locally to see the visual impact of me editing the source. This seems to fail due the the snap not providing the correct plug to allow for binding to a TCP socket to serve the page.

docs$ typst watch --format html doc.typ 
error: failed to start TCP server: Operation not permitted (os error 1)
docs$ snap connections typst 
Interface        Plug                   Slot      Notes
desktop          typst:desktop          :desktop  -
home             typst:home             :home     -
network          typst:network          :network  -
removable-media  typst:removable-media  -         -

While "network" is there, that's only for getting out to the network, not binding to a TCP socket. I believe the plug that needs to be created is "network-bind". There's no need to have it enabled by default, but I cannot even try things out without rebuilding the snap.

https://snapcraft.io/docs/network-bind-interface

Use Case

Enable people using the snap image to try out the HTML format feature within "watch".

References

Previously opened: typst/typst#6962

Pull request: #3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions