How to hide a BApplication from the deskbar

I’m making an application that for now is only a terminal one (it does not have a GUI) but I want to subclass BApplication because I want to to process messages and register some BLooper subclasses, how can I make this applications to not be shown on the deskbar? or what is the correct way to make this kind of application?

You can set the app_flags in an rdef file for the application to have the flag B_BACKGROUND_APP, like here: https://git.haiku-os.org/haiku/tree/src/bin/mountvolume.rdef#n3

3 Likes