Raspberry PiのシステムサービスでKivy GUIのトラブルシューティング

Raspberry PiのシステムサービスでKivy GUIのトラブルシューティング

私は簡単なKivyスクリプトを使用してRaspberry Piタッチスクリーンで実行されるGUIを実装しています。直接実行するとうまく機能します/usr/bin/python3 /home/pi/Documents/kivy_script.py。ただし、システムサービスの実行時にUIは表示されません。

Description=This file handles the enviroment info python application
After=multi-user.target

[Service]
Type=simple
User=pi
Environment=DISPLAY=:0
ExecStart=/usr/bin/python3 /home/pi/Documents/simple_timer/main.py
Restart=on-failure
    
    
[Install]
WantedBy=multi-user.target

問題が何であるか、問題を解決するために何ができるかについてのアドバイスを持っている人はいますか?

ベストアンサー1

おすすめ記事