📌  相关文章
📜  在启动树莓派上运行 python 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:54.102000             🧑  作者: Mango

代码示例2
// Open the terminal with Ctrl+Alt+T
// Go to this directory: /etc/hgd/autostart using the cd command.
// Make a file with a .desktop extension using: sudo nano myFile.desktop
// Inside the myFile.desktop write the following:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ChooseAName
Exec=/usr/bin/python3 /home/pi/myPyhthonName.py
X-GNOME-Autostart-enabled=true