Looking at the Arch wiki Desktop-entries page you referred to, under the tools section there's something called
gendesk, (
https://github.com/xyproto/gendesk) an application written in
Go which compiles easily and runs well on OpenBSD.
With this tool I was able to easily create some bare-bones .desktop files. So for example to create mutt.desktop it's:
Code:
% gendesk -f --pkgname="mutt" --terminal="true" --comment="$(pkg_info -qc mutt)"
taking the output in this case from
pkg_info to fill in the comment field.
Gendesk will also download the relevant PNG icon file from the net if it cannot find one on the local system, and place it in the current directory together with the desktop file.
The mutt.desktop file so created was:
Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Mutt
Comment=tty-based e-mail client
Exec=mutt
Icon=mutt
Terminal=true
StartupNotify=false
Categories=Application;
Gendesk has quite a few other command-line arguments, allowing customisation of the .desktop file to the required degree.