[英]How to turn a UNIX executable into a desktop icon shortcut?
I have a python program that is executable and I can run it on my terminal by typing: ./python_file_name 我有一个可执行的python程序,可以在终端上输入以下命令来运行它:./python_file_name
This is fine for my use, but I want the program to be accessible to non-computer people. 这对我来说很好,但是我希望非计算机人员可以访问该程序。 I would like to be able to create a desktop shortcut that runs the UNIX executable file.
我希望能够创建一个运行UNIX可执行文件的桌面快捷方式。 Currently when I double click the executable file it just opens the python program in a text editor.
当前,当我双击可执行文件时,它只是在文本编辑器中打开python程序。 I want to be able to have the end-user double click the file so that it executes in the background.
我希望最终用户可以双击该文件,以便它在后台执行。
Just for completeness, the script generates a time-sensitive-data-scraping csv file in the user's downloads folder. 仅出于完整性考虑,该脚本会在用户的downloads文件夹中生成一个时间敏感数据抓取的csv文件。 Therefore, there is no need to create an application with a GUI or anything fancy like that.
因此,无需使用GUI或类似工具创建应用程序。 Also, I am using Ubuntu and the end-user will be on Mac OS X.
另外,我正在使用Ubuntu,最终用户将在Mac OS X上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.