How to find the command of an app to autostart it?

Plus I posted a tutorial on how to remove flatpak and snap.