我已经安装了tuxguitar,当我双击它们时,它可以在文件资源管理器中打开.gp3文件。这个很好用。
我需要通过.gp3编写打开顺序tuxguitar文件的脚本,但是当我输入终端时:
/opt/tuxguitar/tuxguitar.sh "sample.gp3"然后tuxguitar空打开,而不是我指定的文件。
如何查看GUI调用的确切命令,以便用我单击的、预打开的文件打开tuxguitar?
编辑:.desktop条目是
[Desktop Entry]
Name=TuxGuitar
GenericName=TuxGuitar
Comment=TuxGuitar
Type=Application
MimeType=audio/x-tuxguitar;audio/x-gtp;audio/x-ptb
Categories=Application;AudioVideo;
Exec=/opt/tuxguitar/tuxguitar.sh %F
Icon=/opt/tuxguitar/share/skins/Oxygen/icon-96x96.png
Terminal=false
StartupNotify=false发布于 2022-05-08 18:44:38
原来语法是正确的,但是对于tuxguitar的具体情况,必须指定.gp3的完整文件。
/opt/tuxguitar/tuxguitar.sh "/home/user/full_path/sample.gp3"https://askubuntu.com/questions/1407410
复制相似问题