A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 41 lines 1.1 kB view raw
1#!/bin/sh 2# __________ __ ___. 3# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7# \/ \/ \/ \/ \/ 8# 9#shortcut.desktop generator 10 11# Create a .desktop entry to allow the simulator to be executed in newer shells 12# $1 executable 13# $2 shortcut name 14# $3 icon 15create_shortcut() { 16 path="$(cd "$(dirname "$1")"; pwd)/" 17 execname=$(basename "$1") 18 shortname="$2" 19 icon="$3" 20 shortcut="$path$shortname.desktop" 21 22 echo "Creating shortcut $shortcut" 23 echo "path: $path" 24 echo "exec: $execname" 25 echo "icon: $icon" 26 27 echo "[Desktop Entry] 28 Encoding=UTF-8 29 Version=1.1 30 Type=Application 31 Categories=Apps; 32 Terminal=false 33 Name=$shortname 34 Path=$path 35 Exec=$path/$execname 36 Icon=$icon 37 Name[en-US]=$shortname" > $shortcut 38} 39 40#./genshortcut.sh ./rockboxui target-sim music-app 41create_shortcut $@