我有这个脚本 /home/username/
我可以使用以下代码通过终端运行它
./script.sh
Run Code Online (Sandbox Code Playgroud)
或者
sh script.sh
Run Code Online (Sandbox Code Playgroud)
它有效(它具有可执行权限)
但我无法将其分配给键盘快捷键。我正在使用键盘快捷键的“自定义快捷键”选项卡添加快捷键。也尝试过使用 xbindkeys。
到目前为止我尝试过的是(将它们添加到快捷键的命令中)
bash "/script.sh"
bash "./script.sh"
bash "home/username/script.sh"
home/username/script.sh
sh "/script.sh"
"/script.sh"
/script.sh
gnome-terminal "/home/username/script.sh
Run Code Online (Sandbox Code Playgroud)
还有很多我不记得了。
谁能说出问题?