Bug 457028 - Profiles are not saved correctly
Summary: Profiles are not saved correctly
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: HI normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 458432 458835 459712 459889 460225 461329 463116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-07-22 19:15 UTC by Piotr Mierzwinski
Modified: 2023-01-09 22:01 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
konsole 1 (37.59 KB, image/png)
2022-07-22 19:16 UTC, Piotr Mierzwinski
Details
konsole 2 (36.70 KB, image/png)
2022-07-22 19:16 UTC, Piotr Mierzwinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2022-07-22 19:15:44 UTC
SUMMARY
In updated Neon unstable I created new user, logged in and started konsole. Here  created 2 sessions/profiiles: bash and second which started mc like that "mc %s". Unfortunately after relogin I got 3 opened cards which were calling "builtin", "builtin" and one with name of opened recent directory,. In Configure konsole  -> Profiles I met only one profile "built-in". So seems something was incorrectly.


STEPS TO REPRODUCE
1. set restore session of KDE/Plasma
2. create new user
3. login onto this user
4. start konsole
5. create 2 new profiles, like:
   bash (running "/bin/bash")
   mc (running "mc $s"
  (all setting are default)
6. logoff from Plasma session
7. login to Plasma session

OBSERVED RESULT
profiles don't start correctly, happens 2 called like "built-in" and one with name of recently opened directory, working before mc doesn't start at all

EXPECTED RESULT
profiles should start the same were working in moment logging of / closing konsole

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.97
Qt Version: 5.15.5

Distribution: Neon unstable
Konsole 22.11.70

ADDITIONAL INFORMATION
Comment 1 Piotr Mierzwinski 2022-07-22 19:16:16 UTC
Created attachment 150827 [details]
konsole 1
Comment 2 Piotr Mierzwinski 2022-07-22 19:16:46 UTC
Created attachment 150828 [details]
konsole 2
Comment 3 Piotr Mierzwinski 2022-07-22 19:21:23 UTC
Forgot to add.
I cannot edit any newly created profile. Button "Edit" is disabled for each selected entry.
Comment 4 miranda 2022-07-30 23:27:28 UTC
Also seeing this. In the "Manage Profiles" menu if you hover over a newly created profile, you can see a listed `*.profile` file that does not exist, despite `.local/share/konsole` permissions looking correct.

Here's my system info:

```
$ cat /etc/os-release 
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux-logo

$ uname -a
Linux melchior 5.18.15-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 29 Jul 2022 22:52:39 +0000 x86_64 GNU/Linux

$ plasmashell --version
plasmashell 5.25.3

$ kf5-config --version
Qt: 5.15.5
KDE Frameworks: 5.96.0
kf5-config: 1.0

$ konsole --version
konsole 22.07.80
```
Comment 5 Joern 2022-09-03 16:42:15 UTC
I can confirm this. Newly created profiles will not save. When I create a new profile the "Edit" Button will work. But when you click "Apply" and re-open the profile manager the previous created profile is gone. It will simply never be saved.

Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 7590
Comment 6 kocelfc 2022-09-04 16:12:28 UTC
something similar on openSUSE Tumbleweed but a bit different, if i create a profile, everything is fine: it creates a .profile file in .local/share/konsole, BUT, as soon as I make it the default profile and press apply, the file disappears and on next start of Konsole,the profile is completely gone.

Operating System: openSUSE Tumbleweed 20220901
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Comment 7 Tom 2022-10-01 22:44:10 UTC
*** Bug 459712 has been marked as a duplicate of this bug. ***
Comment 8 Alexander Ahjolinna 2022-10-12 02:57:56 UTC
yeah same for me as kocelfc said (above) on about openSUSE tumbleweed, but I use git version of KDE (with wayland + nvidia)

also this seems like a same issue as : https://bugs.kde.org/show_bug.cgi?id=459889

-------
Operating System: openSUSE Tumbleweed 20221008
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Kernel Version: 6.0.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 15.4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
Manufacturer: ASUS
Comment 9 Andreas Sturmlechner 2023-01-06 13:32:40 UTC
*** Bug 461329 has been marked as a duplicate of this bug. ***
Comment 10 Andreas Sturmlechner 2023-01-06 13:33:22 UTC
*** Bug 458835 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Sturmlechner 2023-01-06 13:33:35 UTC
*** Bug 459889 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Sturmlechner 2023-01-06 13:34:02 UTC
*** Bug 460225 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Sturmlechner 2023-01-06 13:34:51 UTC
*** Bug 463116 has been marked as a duplicate of this bug. ***
Comment 14 Andreas Sturmlechner 2023-01-06 13:37:20 UTC
*** Bug 458432 has been marked as a duplicate of this bug. ***
Comment 15 Andreas Sturmlechner 2023-01-06 13:38:28 UTC
(In reply to witchhunter from bug #458432, comment #3)
> Workaround:
> click OK rather than Apply to save a profile

Could someone confirm this?
Comment 16 Ron Nascimento 2023-01-06 13:41:55 UTC
Workaround: just create the file in `$HOME/.local/share/konsole/Work.profile` with these contents:

```ini
[General]
Name=Work
Parent=FALLBACK/
```

Now if you create a new profile it will be saved. Perhaps its an error if the parent directory `$HOME/.local/share/konsole` does not exists it errors out instead of creating the directory?
Comment 17 Ron Nascimento 2023-01-06 13:42:56 UTC
(In reply to Andreas Sturmlechner from comment #15)
> (In reply to witchhunter from bug #458432, comment #3)
> > Workaround:
> > click OK rather than Apply to save a profile
> 
> Could someone confirm this?

Does **NOT** work for me. 
Linux titan 6.1.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 04 Jan 2023 16:28:15 +0000 x86_64 GNU/Linux
Comment 18 Ben Cooksley 2023-01-06 17:23:46 UTC
Unsubscribing user per abuse report we received.
Comment 19 Piotr Mierzwinski 2023-01-06 18:53:50 UTC
Workaround does work for me.
After OK being pressed in "Manage Profiles" window I'm able to edit newly created profile and after relogin to Plasma session, new profile is still available on the list.
Comment 20 miranda 2023-01-07 23:55:04 UTC
Interesting, the behavior has since changed since last I reported this (July, fourth comment). It works now!

When I create a new profile it shows immediately under ~/.local/share/konsole/, and edits are able to be applied. Before it wouldn't even make the .profile file (hence why edits weren't saving - there was nothing to save to). Same directory permissions and all, too.

I'm now running Plasma 5.26.5, framework 5.101.0, Qt 5.15.8, Kernel 6.1.3

I believe something previously upstream had resolved this and now it works. Though, I'm curious if at least one other could check if they're up to the above framework version and report back. This very well could've been me accidentally bumping some setting or paving over the problem somehow.
Comment 21 TraceyC 2023-01-08 18:42:16 UTC
The problem is also resolved for me. I see the same behavior as in the last comment.

Go to Settings - Manage Profiles and create a new profile, click "Apply", not OK
Confirmed the profile was saved to ~/.local/share/konsole
Click OK, exit the profile manager
The new profile shows up under Settings - Switch Profile and I'm able to switch to it. The profile has the color profile I saved with it.

KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.1.2-228.current (64-bit)
Comment 22 Andreas Sturmlechner 2023-01-09 08:10:57 UTC
Could you please reveal your konsole application version? You can check it in konsole -> Help -> About Konsole
Comment 23 Ron Nascimento 2023-01-09 14:25:59 UTC
Just installed a fresh copy of Arch and created a new profile and it worked with no issues. 

Konsole Version 22.12.1

Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Kernel Version: 6.1.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUS
Comment 24 TraceyC 2023-01-09 16:50:04 UTC
(In reply to Andreas Sturmlechner from comment #22)
> Could you please reveal your konsole application version? You can check it
> in konsole -> Help -> About Konsole

Sure thing, apologies that I didn't include that.
Konsole 22.08.3
Comment 25 Piotr Mierzwinski 2023-01-09 20:30:38 UTC
(In reply to Piotr Mierzwinski from comment #19)
> Workaround does work for me.
> After OK being pressed in "Manage Profiles" window I'm able to edit newly
> created profile and after relogin to Plasma session, new profile is still
> available on the list.

Just update with konsole version: 22.11.70  (Help -> About konsole)
$ apt list --installed | grep konsole 
konsole/jammy,now 4:22.08.1+p22.04+tunstable+git20221006.0122-0 amd64 [installed]

KDE Frameworks:  5.102.0
BTW.
I added new profile, clicked OK and all seems to be fine. I'm able to edit newly created profile.
Comment 26 Alexander Ahjolinna 2023-01-09 22:01:15 UTC
it seems to be fixed now for me as well at least on openSUSE tumbleweed git version of KDE

I have Konsole version "22.11.70git.20230108T022933~d0461ba-ku.27.1" installed

-----

system spec :

Operating System: openSUSE Tumbleweed 20230108
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.7
Kernel Version: 6.1.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 15.4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
Manufacturer: ASUS