Reimage creates a two level service menu. I have the four Reimage .desktop files and have studied them like the Zapruder film.
I’m trying to do exactly what they do but always end up with two top level entries, instead of being grouped under a single top level menu entry with submenus.
I’ve read this document and it’s a nice start but seems to be light on detail.
I notice that desktop-file-validate throws errors that I believe are valid syntax. Certainly, it indicates errors in my .desktop files, as well as the reimage .desktop files. Perhaps it is a bit out of date.
I must be missing something extremely simple.
***** process.desktop *****
[Desktop Entry]
# Name=VideoKit
Type=Service
ServiceTypes=KonqPopupMenu/Plugin;
MimeType=video/*;
Icon=transcode
X-KDE-Submenu=Process
# hides the whole service if missing
TryExec=videokit-util
# top-level items in the VideoKit submenu
Actions=Process-Standard
# ==========================================
# Parent action: Process submenu
# ==========================================
[Desktop Action Process-Standard]
Name=Process (strip subs/metadata/title)
# X-TryExec=videokit-util
Exec=konsole -e videokit-util --process --exit-delay --file “%f”
Icon=subtitlecomposer
# X-MimeType=video/*;
# X-Terminal=true
***** transcode.desktop *****
[Desktop Entry]
Name=VideoKit
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=video/*;
Icon=transcode
X-KDE-Submenu=Transcode
# hides the whole service if missing
TryExec=videokit-util
# top-level items in the VideoKit submenu
Actions=Transcode-Standard
[Desktop Action Transcode-Standard]
Name=Standard transcode
Exec=konsole -e videokit-util --transcode-file --file “%f” --exit-delay
Icon=transcode
Terminal=true
[Desktop Action Transcode-Film]
Name=Optimize for Film
Exec=konsole -e videokit-util --transcode-file --file “%f” --exit-delay --optimize-film
Icon=transcode
Terminal=true
[Desktop Action Transcode-BW]
Name=Optimize for B&W Film
Exec=konsole -e videokit-util --transcode-file --file “%f” --exit-delay --optimize-bw
Icon=transcode
Terminal=true