Ubuntu – How to make programs that autostart at login start hidden


How do I start applications that autostart on login start hidden in the system tray? Is there special command (i.e. –hidden) to the autostart command to make the application start to the system tray?

I know in Kubuntu 11.04 Kwin allows "Special Windows Settings" to set a specific rule to start an application minimized but haven't seen any rule to start to tray.

I'm looking to start Mobloquer to the system tray on login, but a more general method to solve this problem that applies to all programs would be very much appreciated.

Best Answer

kstart --iconify <program name> in KDE starts minimized. I really don't know if there is a specific command to close to systray (even because many apps don't have a systray).

Another possibility is using ksystray. For example ksystraycmd --hidden kmail will start kmail and put it in the system tray. But i'm not quite sure if it will work for any app. If not, probably you have to check if there is a specific option for your application.

You can find more info here.

EDIT : more info here too

Related Question