Bug 441803 - Konsole does not allow to change default profile, but creates new profile instead, leading to cumbersome "New Tab" workflow
Summary: Konsole does not allow to change default profile, but creates new profile ins...
Status: REOPENED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-31 08:32 UTC by Alain Knaff
Modified: 2023-06-17 10:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.08


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Knaff 2021-08-31 08:32:48 UTC
SUMMARY

I'd like to customize the default profile of konsole, but have no need of having multiple parallel profiles in parallel as this leads to an excessive (non-optimal) amount of clicks to open a new tab


STEPS TO REPRODUCE
1. Settings->Edit Current Profile->Appearance
2. Change the color scheme to something else (or any other change)
3. Apply

OBSERVED RESULT
"Each profile must have a name before it can be saved into disk."
Why would it need another name when changing an *existing* profile?
Entering a name causes a new profile to be created with the changed setting
As there are now 2 profiles (the original unchangeable default profile and then this new profile), opening new tabs becomes more cumbersome, as now the menu forces to chose among these 2 profiles

EXPECTED RESULT
It should be possible to change the default profile without needing to create a new profile to do so.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.10.0-8
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

(btw, why are these version numbers, in SystemSettings->SystemInformation, not copy-pastable?)

ADDITIONAL INFORMATION
N.B. It is indeed possible to set a "Default" flag on such newly created profile, but this still keeps the original default in place, which cannot be removed
Comment 1 nsprangers@gmail.com 2021-09-06 23:03:03 UTC
This is how Konsole was designed apparently. It keeps creating more profiles because you have to manually set the default:

Go to "Settings > Manage Profiles", select your profile and click set as default.

Now the new tab buttons and menus will use your profile (and you can change it without creating more profiles).

I'm working on a commit that adds a "set as default" button to the dialog and I believe there is other work being done to overhaul the profile system...

https://invent.kde.org/farruinn/konsole/-/commits/default-profile-button
Comment 2 Ahmad Samir 2021-09-06 23:35:35 UTC
I think this issue is fixed in https://invent.kde.org/utilities/konsole/-/commit/5ab8423139467ad97d87d00dc82a85f91c5a1492 , version 21.08

Basically when you use "Edit current profile" for the first time, you'd be editing the built-in profile, which is immutable, so the dialog actually creates a new profile (as you saw), the missing bit was setting that new profile as the current session profile:
SessionManager::instance()->setSessionProfile(session(), profile);

FWIW, in git master the menu text has been changed, if the dialog will create a new profile the text is "create new profile", if it's editing an existing (editable) profile, it is "edit current profile".

And there is an open MR to rename the "Default" (aka Fallback, aka Built-in) profile to "Built-in" everywhere, to finally disambiguate the name of the internal immutable profile.

(A "set profile as default" button sounds like a good idea, currently the only way to set a profile as default is using the profile manager (settings -> configure konsole)).
Comment 3 Alain Knaff 2021-09-07 06:02:40 UTC
(In reply to Ahmad Samir from comment #2)
> And there is an open MR to rename the "Default" (aka Fallback, aka Built-in)
> profile to "Built-in" everywhere, to finally disambiguate the name of the
> internal immutable profile.
> 
> (A "set profile as default" button sounds like a good idea, currently the
> only way to set a profile as default is using the profile manager (settings
> -> configure konsole)).

This wouldn't still fix the issue about the extra click needed in "New Tab", as long as that original "Built-in" profile stays visible.
Comment 4 tomashnyk 2022-01-01 23:42:50 UTC
(In reply to Alain Knaff from comment #3)
> 
> This wouldn't still fix the issue about the extra click needed in "New Tab",
> as long as that original "Built-in" profile stays visible.

Indeed. A more sensible solution would be to create a user-modifiable profile for new users and hide the default one. New profiles would be automatically created with the default settings. There could be an action "Reset to default" (on the right, would reset the selected profile to default) and "Copy profile" that would make an identical profile from the selected one - I think I do not need to explain why this would be useful.
Comment 5 Alain Knaff 2023-06-17 10:24:18 UTC
The bug re-appeared in konsole 22.12.3 as shipped with Debian 12.