📌  相关文章
📜  raspbian 在启动时运行 python 脚本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:20.425000             🧑  作者: 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