View Single Post
  #3   (View Single Post)  
Old 1st November 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default Gendesk

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.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote