Currently, I have setup terminal as a startup application.
I'm calling sudo xinit /home/enws/mystarter -- :1 -nocursor in the /home/enws/.bashrc file to start my gui application. But this keeps the X server at 0th display alive and it uses memory. If I try to start the script on the 0th display I get an Xserver is already running error.
I have tried to put the script in .xinit, .xinitrc, .Xsession, /etc/X11/Xsession. None of them seems to work.
How can I start the python Qt GUI script at startup without a desktop environment?
Also, I need the pulseaudio to work without issues so I need a user session. Root user seems to be problematic.