I have a python application that uses pygame to access the framebuffer directly without using X. I want to start this application on startup instead of showing the console login prompt. I haven't found any good resources which explains how I would do it.
Just the same way gdm is started instead of showing a console login prompt.
Bonus question: What would happen if said application crashed? Would the console login prompt be shown?
Edit: I have been reading up on runlevels and startup. More specific question below
Will it be enough to create a
/etc/init.d script which starts my python program, update rc.d with
update-rc.d and setting priority to 99 so that it runs last and setting it to run under runlevel 5 (Which is for gui applications I heard). Then changing the default runlevel 5 in
Or do I have to do something special since the program uses framebuffer?