Managing desktop entries at runtime

Hello,

I want to create a Snap that would act as an “App Store”. For better desktop integration, I need to add or remove desktop entries “at runtime”.

Is there a plug or an idiomatic way to achieve this?

Thank you

I ended up using the same plugs than the Steam snap and it worked fine:

plugs:
  dot-local-share-applications:
    interface: personal-files
    write:
      - $HOME/.local/share/applications
  dot-local-share-icons:
    interface: personal-files
    write:
      - $HOME/.local/share/icons

For future reference