[PATCH] Allow forced new processes for KUniqueApplication

Thiago Macieira thiago at kde.org
Sun Mar 23 07:13:59 GMT 2008


Robert Knight wrote:
>Hello,
>
>Konsole is a KUniqueApplication and uses only one process for all
>instances.  This causes a problem where shells in a newly started
>Konsole do not inherit their environment from the parent terminal and
>debug output from the new instance does not appear in the parent
>terminal.
>
>What I would like to do is to force the creation of a new process when
>Konsole is started from the terminal but share a single process for
>instances created from a GUI (the start menu, ALT-F2 dialog etc.)
>
>Attached is a patch for KUniqueApplication which overloads
>KUniqueApplication::start() to take a set of flags to control how how
>the new instance is created, including forcing the creation of a new
>process if necessary.

Please call it DontFork, since it would match the --nofork command-line 
option.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080323/2c10edef/attachment.sig>


More information about the kde-core-devel mailing list