Hi stephanmg
Things that need to run before a GUI are started (like kmaps) should go into /opt/bootsync.sh.
Things that need to run after a GUI are started (like starting a GUI app) should go into ~/.X.d.
Things that are not sensitive to when they are started should go into /opt/bootlocal.sh which runs in the background.
.X.d is a hidden subdirectory in your home directory. Any files you place in there will have their contents (commands) read
line by line and executed. For example, a file containing:
exec aterm &
will launch a terminal after the GUI is running. The & tells it to launch in the background so it does not block other commands
from being run.