Bug 189184 - konsole uses wrong "--name" parameter when opened with a shortcut
Summary: konsole uses wrong "--name" parameter when opened with a shortcut
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: single-process (show other bugs)
Version: master
Platform: Gentoo Packages Linux
: LO normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 171152 205190 216626 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-09 10:15 UTC by qqqqqqqqq9
Modified: 2018-06-07 11:56 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qqqqqqqqq9 2009-04-09 10:15:39 UTC
Version:            (using KDE 4.2.1)
Compiler:          gcc version 4.3.3 (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 
OS:                Linux
Installed from:    Gentoo Packages

Hi,

I use "konsole -name xyz" to pass a x-window-class to the new konsole-window which i use to place the window with the window-matching feature.
This works fine, when issued from a terminal.
When i bind the same command to a key, konsole does not use the specified "-name" but takes it often (not always) from an already existing konsole-window. If there is no konsole-window, it takes the specified one.
Comment 1 Robert Knight 2009-04-09 10:52:40 UTC
This is a side effect of Konsole being a sort-of single-process application in KDE 4.  When you start Konsole from a terminal it will start a new process.  When you start from the GUI it creates an existing window for the new process.  I don't know if it is possible to support a new window class for new windows in the same process.
Comment 2 qqqqqqqqq9 2009-04-11 13:03:31 UTC
Ok, that explaines why the left konsole is sometimes followed (when autostarted) and sometimes not. 

>I don't know if it is possible to support a new window class for new windows in
>the same process.

Wouldn't it suffice to have an option to force the creation of new process? Or just to create a new process, when the windowclass is set?
Comment 3 Robert Knight 2009-04-11 18:06:10 UTC
> Wouldn't it suffice to have an option to force the creation of new process?
> Or just to create a new process, when the windowclass is set?

No need for an option, we could just check for -name in the arguments list.
Comment 4 Jekyll Wu 2011-08-02 20:00:23 UTC
*** Bug 216626 has been marked as a duplicate of this bug. ***
Comment 5 Jekyll Wu 2011-08-03 05:00:03 UTC
*** Bug 205190 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2011-08-03 05:01:38 UTC
This problem also applies to the '--title' option, as in bug #205190
Comment 7 Jekyll Wu 2011-09-21 06:49:16 UTC
*** Bug 171152 has been marked as a duplicate of this bug. ***
Comment 8 Jekyll Wu 2011-09-21 06:50:06 UTC
This problem also applies to the '--icon' option, as in bug #171152
Comment 9 Ahmad Samir 2018-06-07 11:56:31 UTC
This is sort of fixed in recent konsole versions because there's an option to toggle running konsole in a single process, in Settings -> Configure Konsole, "Run all konsole windows in the same process".

Resolving as fixed, if you disagree feel free to reopen the report.