aristosv
Posts: 159
Joined: Mon Dec 08, 2014 7:47 pm

can't make my app appear in full screen mode

Wed Apr 01, 2020 4:48 pm

I am running Raspbian Buster lite on a RaspberryPi 4. I have installed xserver-xorg and mono-complete. I have created this service to start X

Code: Select all

[Unit]
Description = xorg
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = root
Group = root
Type = simple
ExecStart = X
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
and this service to start my app

Code: Select all

[Unit]
Description = myapp
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /bin/bash -c "export DISPLAY=:0 ; mono /home/pi/myapp.exe"
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
So I start the X service and then myapp service. My app appears on the screen, but its not full-screen.

I tried finding an xorg option that will allow me to display myapp in full-screen mode, but I couldn't find something.

How can I make my app appear in full-screen mode?

Thanks

Return to “General discussion”