[英]How can I create desktop shortcut for a command
I'm trying to execute the following command by clicking an icon on desktop: 我试图通过单击桌面上的图标来执行以下命令:
LANG=EN geany
I tried creating a Bash script however it just opened the file with Gedit, after double clicking. 我尝试创建一个Bash脚本,但是双击后它只是使用Gedit打开了文件。 How can I create a shortcut and execute it?
如何创建快捷方式并执行它?
#!/bin/sh
LANG=EN geany
Save it as a whatever.sh
, make it executable, double click and let me know how it goes. 将其另存为
whatever.sh
,使其可执行,双击,让我知道它的运行方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.