Bug 281879

Summary: konsole --new-tab will open tabs in old window
Product: [Applications] konsole Reporter: Grissiom <chaos.proton>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: adaptee
Priority: NOR    
Version: 2.7.999   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:

Description Grissiom 2011-09-12 14:47:06 UTC
Version:           2.7.999 (using KDE 4.7.1) 
OS:                Linux

This only happens when the new window(or application) is started from tty.

Reproducible: Always

Steps to Reproduce:
1, start a new konsole from a terminal in konsole.
2, run `konsole --new-tab` from the new konsole.

Actual Results:  
The new tab is created within the old konsole.

Expected Results:  
The new tab is created in the new konsole.
Comment 1 Jekyll Wu 2011-09-21 06:20:44 UTC
The steps in the origial report is not clear enough. Here is the clearer steps to reproduce the report problem :

1). open konsole from menu or krunner. Just call it kosole #1.
2). in some shell within konsole #1, invoke 'konsole' to get konsole #2.
3). in some shell wintin konsole #2, invoke 'konsole --new-tab'
4). a new tab is created in konsole #1

That feels unnatural. However, it might be the expected behavior since konsole uses KUniqueApplication.
Comment 2 Jekyll Wu 2012-01-13 16:04:46 UTC
Well, now I'm more confident this is the (technically) expected result, although it really feels strange to users.

--new-tab option will try to reuse an existing konsole process and open new tab in that process. A konsole process is reusable when it is really a KUniqureApplication, which means it uses org.kde.konsole as its dbus address. A konsole process started through krunner is reusable, while a konsole process started from terminal is not.

As I have posted in comment #8 of bug 288200, I  think there is no good solution to this strange behavior except providing better explanation in the handbook.
Comment 3 Jekyll Wu 2012-01-13 18:45:31 UTC
Git commit 046ff647f361f1aee69bcc19f4c92b045d81d278 by Jekyll Wu.
Committed on 13/01/2012 at 19:39.
Pushed by jekyllwu into branch 'master'.

Add explanation for possible strange behaviors of the --new-tab option

In short words, do not take that option as a serious promise :)

M  +8    -0    doc/manual/index.docbook

http://commits.kde.org/konsole/046ff647f361f1aee69bcc19f4c92b045d81d278
Comment 4 Jekyll Wu 2012-01-13 18:54:21 UTC
WONTFIX is the word most close to CANTFIX :)