I'm starting with RPI board.
I want run my GUI program make with Qt call "PM" automaticaly when user is login.
I have make a script like this =>
Code: Select all
#!/bin/bash
mkdir plop
cd plop
date > date.txt
/home/pi/Bureau/PM
My program start correctlly.
Now I try to use systemd to run my program but it doesn't work i think the problem come from systemd.
Here is my service "MyServcie.service" :
Code: Select all
[Unit]
Description:Try to launch Prog Qt
After=graphical.target
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/Bureau
ExecStart=/home/pi/Bureau/script
[Install]
WantedBy=graphical.target
When I write :
sudo systemctl start MyService.service
The program has not started but I have a folder plop whith date in file so the service has started but not launch my program I don't huserstand why.
Someone can help me thanks.
Franck
