Bug 430450

Summary: Profiles and realtime preview not working
Product: [Applications] konsole Reporter: Sebastian Gauna <gaunas>
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: a.samirh78, b.pedini, kdebugs, nate, rikmills, tynach2, wbauer1
Priority: NOR    
Version: 20.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sebastian Gauna 2020-12-16 07:01:50 UTC
SUMMARY
Profiles are not working.
At the beginning I noticed that when changing colors it wasn't being preview in real time as it used to be. Then I realized that if I create different profiles I does nothing when I select them by using Settings -> Switch Profile.
Also the first column that had a checkbox in the Profiles List dissapeared and the list of profiles when going to Settings -> Switch prfiles, contains invalid (non current) entries. 

STEPS TO REPRODUCE
1. Go to create a new profile.
2. Go to appearance and select a color scheme, it does not preview.
3. Save profile
4. Go to Settings -> Switch Profile

OBSERVED RESULT
- Color schemes are not previewed in real time
- Profiles are not loaded when switching them.

EXPECTED RESULT
Just the normal functionality...


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Colin Griffith 2020-12-28 23:19:44 UTC
Yeah, I noticed this too. Glad a bug report already exists for it.

This worked last month. I'm assuming Konsole - or something related - was updated recently and that's when it broke.

Changes to profiles in general seem to not be applied until a new terminal is opened with that profile, either in a new window or a new tab.
Comment 2 Ahmad Samir 2021-01-05 16:31:59 UTC
Start konsole from another konsole window (if you have "Run all konsole windows in a single process" enabled, you'll need to start konsole from another terminal emulator (xterm, gnome-terminal...etc)); do you get output like:
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileList
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
Applying profile
QObject::connect: signal not found in Konsole::ProfileManager

if so, then it's similar to https://invent.kde.org/utilities/konsole/-/merge_requests/183#note_92561
Comment 3 Sebastian Gauna 2021-01-06 02:48:27 UTC
@Ahmad Samir, I did what you say and I just got:
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileList
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager

That's it.
Comment 4 rbnmndz 2021-01-07 09:58:19 UTC
Same issue here with different computers: profiles are not launching from konsole tab. Although they can be launched from konsole profiles widget.

If I start konsole from the command line it shows these messages:
$ konsole
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileList
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
QObject::connect: signal not found in Konsole::ProfileManager
Comment 5 Ahmad Samir 2021-01-07 10:20:21 UTC
This can be worked around by changing/tweaking the build flags, see the MR I linked for more details.
Comment 6 rbnmndz 2021-01-07 10:57:44 UTC
Profiles can't be launched from the konsole profile tab, but they can be launched from the menu option "New Tab" / profile_name.

When I go to the "Change Profile", I am seeing some profiles duplicated, but not all of them. There are no duplicities on "Profile Managament". None of them are working on the "Change Profile" menu.
Comment 7 rbnmndz 2021-01-07 11:59:49 UTC
Upgraded konsole & konsole-part to 4:20.12.0+p20.04+git20210103.0056-0 and these problems disappeared and no error messages at konsole launch.
From site https://origin.archive.neon.kde.org/testing/pool/main/k/konsole/

Thanks!
Comment 8 Ahmad Samir 2021-01-09 10:45:27 UTC
*** Bug 431264 has been marked as a duplicate of this bug. ***
Comment 9 Sebastian Gauna 2021-01-11 15:46:52 UTC
I just applied the update from today and Kosole was updated to v4.20.12.1
The problem seems to be solved.
Comment 10 Wolfgang Bauer 2021-01-11 16:16:17 UTC
(In reply to rbnmndz from comment #4)
> Same issue here with different computers: profiles are not launching from
> konsole tab. Although they can be launched from konsole profiles widget.
> 
> If I start konsole from the command line it shows these messages:
> $ konsole
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileList
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileManager
> QObject::connect: signal not found in Konsole::ProfileManager

I remember seeing the same error messages with 20.12.0, but they disappeared when I added https://invent.kde.org/utilities/konsole/-/commit/3f2b2d9df4ca74baa0d263c36dc70d95c149b221 to fix bug#424986.

That commit is part of 20.12.1, and fixed the problems with switching profiles.

But, the color schemes are still not applied immediately, you have to click Apply or Cancel first. In previous versions, selecting a different color scheme changed the colors in the window directly, they were changed back if you clicked Cancel.
Comment 11 Ahmad Samir 2021-03-18 17:20:22 UTC
@Wolfgang, was that an issue with the "Default" (the fallback/built-in) profile? if so it should be fixed by https://invent.kde.org/utilities/konsole/-/commit/5ab8423139467ad97d87d00dc82a85f91c5a1492

Closing, per comment#9, if there are still issues please create a new report.