Bug 425398

Summary: new-tab does not open a new tab, opens a new window
Product: [Applications] konsole Reporter: Patafurdio <patafurdio.dev>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: chris, navarroaxel, tcanabrava
Priority: NOR    
Version: 20.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patafurdio 2020-08-15 19:54:54 UTC
SUMMARY


STEPS TO REPRODUCE
1. open konsole
2. konsole --new-tab -e /bin/sh -c "cd /media/; ./program.sh;"
3. konsole --new-tab -e /bin/sh -c "cd /media-other/; ./other-program.sh;"

OBSERVED RESULT
opens a new window in version 20.08 in the first time it is executed step number 2
opens a new window when executed step 3

EXPECTED RESULT
to open a new window on step 2 but it should open new-tab (on second window) on step number 3, but instead opens a new window

SOFTWARE/OS VERSIONS
Linux: 5.8.1-arch1-1
KDE Plasma: 5.85.19.4
(available in About System)
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
usually open one konsole, paste several commands that open a second window and all other commands are in new-tabs on the second window.
this was working fine before unti 20.04 but in 20.08 just opens new windows.
I updated today my Arch Linux.
Comment 1 Patafurdio 2020-08-15 19:59:04 UTC
Downgraded to 20.04 and it works again.I have konsole-20.04.3-1-x86_64.pkg.tar.zst on my cache.
Comment 2 tcanabrava 2020-08-15 21:41:07 UTC
Please go to konsole settings -> General -> Run all konsole windows in a single session.

This happens because a fix for konsole multi-session mode changed the behavior, and now if konsole runs with multiple sessions there's no way to open a tab in a specified PID.

*currently* this is considered more an annoyance (as it's fixed by a simple settings change) but we are looking for alternatives on how to properly fix this even in multiple PID's.
Comment 3 Patafurdio 2020-08-15 21:57:37 UTC
(In reply to tcanabrava from comment #2)
> Please go to konsole settings -> General -> Run all konsole windows in a
> single session.
> 
> This happens because a fix for konsole multi-session mode changed the
> behavior, and now if konsole runs with multiple sessions there's no way to
> open a tab in a specified PID.
> 
> *currently* this is considered more an annoyance (as it's fixed by a simple
> settings change) but we are looking for alternatives on how to properly fix
> this even in multiple PID's.

Thanks, it works.