KDE4 had something to start a program minimized (I don’t know about “start in tray”), KDE5 does not have it anymore.
I don’t know how the X-Server can do it.

Alltray didn’t help in Autostart, because alltray stays itself in tray

Other application can do it by themselves; QOwnNotes e.g.

2 Likes