`personal-files` plug does not connect

Hey there,

I am updating the Snapcraft file for Typst. Typst has the capability to retrieve local templates of a user from $HOME/.local/share/typst/. Our snap already has the home plug but lacks visibility into private files. Hence, I wanted to add a personal-files plug. However, adding the plug does not seem to have any effect.

Below an excerpt of my Snapcraft.yaml file:

name: typst
base: core22
# ...
confinement: strict

parts:
  # build Rust here

plugs:
  dot-local-share-typst:
    interface: personal-files
    read:
    - $HOME/.local/share/typst

apps:
  typst:
    command: "bin/typst"
    plugs:
      - desktop # access host fonts
      - network # retrieve packages
      - home    # read sources and write output
      - removable-media # read sources on media
      - dot-local-share-typst # read/write ~/.local/share/typst

After this, I ran these commands on my shell:

snapcraft
sudo snap install typst_version.snap --dangerous
snap connect typst:dot-local-share-typst

Finally, I copied a template package in the appropriate $HOME/.local/share/typst/packages/local/0.1.0/example-template. However, Typst cannot find this file, meaning it cannot access the hidden folder in the home directory through the plug:

$ typst init "@local/example-template:0.1.0"
2024/09/23 15:54:07.570525 cmd_run.go:1055: WARNING: cannot start document portal: dial unix /run/user/1000/bus: connect: no such file or directory
error: package not found (searched for @local/example-template:0.1.0)

I would appreciate any help debugging my Snapcraft file!