简体   繁体   English

如何为命令创建桌面快捷方式

[英]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.

相关问题 如何在Raspbian Stretch中为命令行命令创建快捷方式? - How do I create a shortcut for a command line command in Raspbian Stretch? 如何通过自定义 arguments 创建桌面快捷方式? - How to create desktop shortcut passing custom arguments? 如何检索桌面快捷方式指向的 url? - How do I retrieve the url a desktop shortcut is pointing to? 如何在自动以其他用户身份执行的桌面上创建快捷方式? - How do I make a shortcut on the desktop that automatically executes as a different user? 如何创建类似于 yakuake 的“桌面下拉菜单”? - How can I create a 'desktop dropdown' similar to yakuake? 如何将网址拖到.desktop快捷方式 - How to drag a url to a .desktop shortcut 在MAC OS X上创建桌面快捷方式(例如Linux中的.desktop) - Create Desktop shortcut on MAC OS X ( like .desktop in linux ) 如何从命令行确定我的 KDE 桌面是否处于锁定屏幕状态? - How can I determine if my KDE Desktop is in lock screen state from command line? 我应该如何创建桌面模型? - How should I create a desktop mockup? 如何在linux Web服务器上创建快捷方式文件夹? - How do I create a shortcut folder on a linux web server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM