简体   繁体   English

如何将UNIX可执行文件转换为桌面图标快捷方式?

[英]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上。

I think you're looking for py2app . 我认为您正在寻找py2app It will allow you to send your user a nice little application bundle. 它将允许您向用户发送一个不错的小应用程序包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM