#!/bin/bash/
ls -1 *.mp3 > playlist.m3u
for (( ; ; )) do mplayer -playlist playlist.m3u; sleep 0.1; done
这是脚本并且它有效!
[Desktop Entry]
Version=1.0
Type=Application
Name=Play
Comment=Play music
Exec=bash /home/awesome/Desktop/test/play.sh
Icon=
Terminal=true
GenericName=Player
答案1
为了使这个工作正常进行,请使用以下命令:
[Desktop Entry]
Version=1.0
Type=Application
Name=Play
Comment=Play music
Exec=bash /home/awesome/Desktop/test/play.sh
Path=/home/awesome/Desktop/test/
Icon=
Terminal=true
GenericName=Player