/usr/share/applications/SilverAudioPlayer.desktop or /usr/local/share/applications/SilverAudioPlayer.desktop for system
OR
~/.local/share/applications/SilverAudioPlayer.desktop for user
[Desktop Entry]
# The type as listed above
Type=Application
# The version of the desktop entry specification to which this file complies
Version=1.0
# The name of the application
Name=SilverAudioPlayer
# A comment which can/will be used as a tooltip
Comment=The SilverCraft Audio Player
# The path to the folder in which the executable is run
Path=<PATHHERE>
# The executable of the application, possibly with arguments.
Exec=<PATHHERE>/SilverAudioPlayer.Avalonia
# The name of the icon that will be used to display this entry
Icon=sap
# Describes whether this application needs to be run in a terminal or not
Terminal=false
# Describes the categories in which this entry should be shown
MimeType=application/ogg;application/x-ogg;audio/ogg;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;application/x-flac;audio/flac;audio/x-flac;audio/mpeg;audio/mpg;audio/mp1;audio/mp2;audio/mp3;audio/x-mp1;audio/x-mp2;audio/x-mp3;audio/x-mpeg;audio/x-mpg;audio/aac;audio/m4a;audio/x-aac;x-content/audio-player;audio/x-aiff;audio/x-pn-aiff;audio/basic;audio/midi;
X-KDE-Protocols=http,https
Keywords=Player;Audio;Dotnet;
Player base directory will have to be replaced ()
Future improvements might be making mimetypes update themselves
Only 2 files need to be created (admittedly root might be needed for a system wide install) Obligatory arch wiki link https://wiki.archlinux.org/title/desktop_entries
/usr/share/applications/SilverAudioPlayer.desktop
or/usr/local/share/applications/SilverAudioPlayer.desktop
for system OR~/.local/share/applications/SilverAudioPlayer.desktop
for userPlayer base directory will have to be replaced ()
Future improvements might be making mimetypes update themselves
Second file is the icon
$HOME/.icons/sap.svg
(avoid because it's for for backwards compatibility) or$XDG_DATA_DIRS/icons/sap.svg
or/usr/share/pixmaps/sap.svg
with the content of https://github.com/thesilvercraft/SilverAudioPlayer/blob/master/SilverAudioPlayer.Avalonia/icon.svg