Bug 293572 - profile setting "command" not executed when changing the profile
Summary: profile setting "command" not executed when changing the profile
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 20:12 UTC by S. Burmeister
Modified: 2012-02-23 00:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2012-02-07 20:12:25 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

If one changes the profile the "command" is not executed.

Reproducible: Always

Steps to Reproduce:
- Ceate a profile X with command "/usr/bin/mc"
- Open a new tab with the default profile, i.e. bash.
- Click on settings > change profile > X

Actual Results:  
- colour etc are changed but /usr/bin/mc, i.e. the "commmand" is not executed.

Expected Results:  
- execute "command" set in profile when changing profiles.
Comment 1 Jekyll Wu 2012-02-09 15:03:32 UTC
Your observation is right. This is actually more like a limitation of current design than a coding bug. I'm not sure what to do with this report.

As for your expected result, do you want Konsole to send the 'mc\n' string as input into bash as if you have manually typed 'mc\n' ? Or, do you want mc to replace bash as the main process in this tab/session ?
Comment 2 S. Burmeister 2012-02-09 16:43:47 UTC
I'd say replace bash, i.e. as if one would close the tab and create a new one with the other profile in its place.

If people just want to start whatever command they set in the profile they would not change profiles but simply type e.g. "mc".
Comment 3 Jekyll Wu 2012-02-09 21:00:59 UTC
Well, I'm afraid your expectation is unlikely to be implemented.

I was not involved with the development of Konsole when KDE4 konsole came out, so I can only make some guess about the design intention of the "Change Profile" feature (strange, it should have been slightly renamed to "Switch Profile" in KDE SC 4.8).

KDE3 konsole provided a lot of submenus under 'Settings'. Those submenus allow uses to switch some properties(color,keyboard, etc) for current tab quickly and temporarily. KDE4 konsole does not provide those submenus(which I do like because the old interface was quite cluttered). It re-organizes those properties around the concept of "profile". "Change Profile" was introduced(again, I'm just guessing) to simulate the previous quick way of changing properties. So from the beginning, it is intended to change some properties of current session, but not to replace current session.
Comment 4 Jekyll Wu 2012-02-23 00:48:33 UTC
Close it as WONTFIX. 

Fixing it will break the existing and intended functionality of that action. Maybe I should add some explanation into the handbook to avoid confusion. That is the best that can be done at the moment.