一键安装,让所有 .py 和 .sh 文件都可以通过双击直接运行!
curl -fsSL https://raw.githubusercontent.com/furina707/linux-lunch/master/install-system.sh | sudo bash# 克隆仓库
git clone https://github.com/furina707/linux-lunch.git
# 进入目录
cd linux-lunch
# 运行安装脚本
sudo bash install-system.sh- ✅ 双击
.py文件直接运行 - ✅ 支持命令行参数
- ✅ 无菜单,简洁高效
- ✅ 自动查找 Python 解释器
- ✅ 双击
.sh文件直接运行 - ✅ 自动添加执行权限
- ✅ 显示执行状态和退出码
- ✅ 切换到脚本目录执行
- 系统目录:
/opt/linux-lunch - 桌面文件:
/usr/share/applications/
- 双击任何
.py或.sh文件即可运行 - 右键菜单选择启动器选项
# 运行 Python 脚本
/opt/linux-lunch/python_launcher.py script.py [参数...]
# 运行 Shell 脚本
/opt/linux-lunch/sh_launcher.sh script.shcurl -fsSL https://raw.githubusercontent.com/furina707/linux-lunch/master/uninstall.sh | sudo bash# 在项目目录中运行
sudo bash uninstall.shsudo rm -rf /opt/linux-lunch
sudo rm /usr/share/applications/python-launcher.desktop
sudo rm /usr/share/applications/sh-launcher.desktop- Linux 操作系统
- Python 3
- Bash
- XDG 兼容的桌面环境(GNOME、KDE、XFCE 等)
MIT License
欢迎提交 Issue 和 Pull Request!
- GitHub: furina707
享受 Linux Lunch 带来的便捷体验! 🎉