Skip to content

Wrong forking behaviour

Submitted by R. Diez

Assigned to Igor @f2404

Link to original bug (#14544)

Description

While developing this script:

https://github.com/rdiez/Tools/blob/master/RunInNewConsole/run-in-new-console.sh

I have realised that xfce4-terminal forks on start-up. This is a problem for my script.

KDE's konsole has an option to control this. From its man page:

Use --nofork to run in the foreground (helpful with the -e option).

I am not the first to be caught by this forking behaviour:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434863

Adding option --disable-server stops the forking. However, this option is documented as "Do not register with the D-BUS session message bus", which is apparently unrelated to forking.