[konsole] [Bug 373440] konsole --new-tab opens window instead

Igor Grkavac bugzilla_noreply at kde.org
Tue Jul 20 22:15:09 BST 2021


https://bugs.kde.org/show_bug.cgi?id=373440

Igor Grkavac <grkavac.igor at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grkavac.igor at gmail.com

--- Comment #45 from Igor Grkavac <grkavac.igor at gmail.com> ---
Hello,

I checked this issue and I think it can be divided into 2 parts:

1. The first problem seems to be this line (which ironically says "Don't
touch"):

https://invent.kde.org/utilities/konsole/-/blob/fb69c183c672dff1d8e5e95d187622980255827c/src/main.cpp#L146

As it is preventing using a single process if 'multiple' is selected in
options.

Removing Konsole::KonsoleSettings::useSingleInstance() should be enough.

2. The second problem is that this is working only if konsole is launched with
"--new-tab". If konsole is launched with no arguments, calling "konsole
--new-tab" from within will open a new window. If "konsole --new-tab" is
launched first, every additional "konsole --new-tab" will open a new tab. I am
still not sure why is this happening.

However, there is another thing that I noticed:

A new tab is opened only on the initial konsole. So, if you open a konsole and
run --new-tab a few times and open additional konsole, doing "konsole
--new-tab" will add a tab to the previous konsole, not the current one.

I guess that it is another issue due to a workaround that is just looking for
the first non-nullptr window, but that should be checked on another ticket.

I will update if I find anything regarding the second problem why it is
happening.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list