Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2448

Raspberry Pi OS • Run 2 GUI Applications each on its own PI4 screen 8gb

$
0
0
Hello everyone,

I come to you for help regarding my problem in title.

I created 2 graphic applications that must each work on a screen of the raspberry connected in HDMI 1 and HDMI 2. The thing is that the applications must start at the boot of the PI4 App1 on screen 1 and App 2 on screen2
I tried everything I could find on the net without success. (rc.local / script example for opening 2 web pages with chromium found on the net etc ...)
when I do Echo $ XDG_SESSION_Type I am under wayland.

the automatic start of my app currently works with a *.service app file which is in /etc/systemd/system/myApp1.service
My app1 is in the directory /home/app1

Code:

Description=Start App1[Service]User=piEnvironment=DISPLAY=:0Environment=XAUTHORITY=/home/pi/.XauthorityExecStart=/home/app1Restart=alwaysRestartSec=10sKillMode=processTimeoutSec=infinity[Install]WantedBy=multi-user.target`
I won't hide from you that I've been looking for a while and that your help seems essential to me

Concerning my application it was created with NetBeans in C++ and GTK (it works correctly and I have control over the code of course)
Thanks in advance

Oscar
Sorry i use google traduction

Statistics: Posted by Oscar02 — Fri Sep 13, 2024 4:12 pm



Viewing all articles
Browse latest Browse all 2448

Trending Articles