小编afe*_*sin的帖子

Bash 脚本无法使用键盘快捷键运行

我有这个脚本 /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)

还有很多我不记得了。

谁能说出问题?

bash scripts shortcut-keys unity 14.04

4
推荐指数
1
解决办法
2165
查看次数

标签 统计

14.04 ×1

bash ×1

scripts ×1

shortcut-keys ×1

unity ×1