I want to run a specific python application on a monitor connected to the HDMI port of an Nvidia card on a linux server (Ubuntu 20.04). Currently, the entire console gets displayed but I dont want the terminal or other applications to be accessible. I want the application to run and in cases of a crash or termination, empty Ubuntu desktop should be visible with no access to terminal.
How can I achieve this?Note - I have to do this via Nvidia graphics card's output only.
I tried with Xorg and when I do this on the terminal:DISPLAY=:1 <your-application>
My application runs. But the same thing on the script which runs from a service file does not work.It works on VGA output from the motherboard.
Is there any options in the Nvidia card or how can I go about this?