Dolphin Service Menus: not showing up for typst text files

I am trying to add typst rendering support to Dolphin.

My idea was a service menu that allows to start and stop a typst watch process on the file, so that when editing it, the resulting pdf can be previewed

I am not sure if the mimetype for typst files is there yet:

  • dolphin shows it as “typst text”
  • but the content says “Objective C source code”
  • there is an icon called x-text-typst for typst text files, which shows correctly
  • and in systemsettings, I cannot add a default application for that mimetype

but the following service menu does not show up for typst files

[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=text/x-typst;
Actions=watch;stop;
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
Icon=image

[Desktop Action watch]
Icon=text-x-typst
Name=Watch this file with Typst
Exec=typst watch --no-serve "%u"

[Desktop Action stop]
Icon=text-x-typst
Name=Quit all running typst processes
Exec=pkill -3 typst

meanwhile the one I based this off, for image files, shows up correctly.