Bug 440391 - Plasma shortcut entry has disappeared
Summary: Plasma shortcut entry has disappeared
Status: RESOLVED DUPLICATE of bug 447744
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-07-29 18:25 UTC by techxgames
Modified: 2022-09-17 12:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of my Shortcuts entries (46.89 KB, image/png)
2021-07-29 18:25 UTC, techxgames
Details
KGlobalShortcuts from my Kubuntu 21.04 (16.72 KB, text/plain)
2021-08-05 07:52 UTC, techxgames
Details
KGlobalShortcuts from KDE Neon Testing Edition (21.15 KB, text/plain)
2021-08-05 07:54 UTC, techxgames
Details

Note You need to log in before you can comment on or make changes to this bug.
Description techxgames 2021-07-29 18:25:46 UTC
Created attachment 140395 [details]
Screenshot of my Shortcuts entries

SUMMARY
I can't seem to find anything about Plasma shortcuts, like for the task bar.  I remember there used to be Plasma entry there.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-25-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
this is related to bug 440374
My KDE Neon Testing Edition is also experiencing the same thing.  In addition, opening apps from the task bar will open the ones on the Plasma panel, not Latte Dock (see 440374)
Comment 1 Nate Graham 2021-07-29 23:31:03 UTC
What shortcuts are you looking for specifically? Most of the global shortcuts that Plasma registers are located in various items listed there according to their purpose. For example the stuff in "Power Management" and "Session management" come from Plasma.
Comment 2 techxgames 2021-07-29 23:53:17 UTC
(In reply to Nate Graham from comment #1)
> What shortcuts are you looking for specifically? Most of the global
> shortcuts that Plasma registers are located in various items listed there
> according to their purpose. For example the stuff in "Power Management" and
> "Session management" come from Plasma.

Opening taskbar entries.  

On my desktop with Neon Testing, I have a monitor with Latte dock on primary and Plasma panel on the secondary.  And on that system, only the task manager plasmoind in the Plasma panel (second monitor) responds to my keyboard shortcut.

On my laptop with Kubuntu, Latte task isn't responding to my keyboard shortcuts at all..
Comment 3 Nate Graham 2021-07-30 13:26:56 UTC
Hmm, yeah, that. I see that the "Plasma" entry exists on my system. But I can see from your screenshot that you don't have it.

Do you recall whether this worked in 5.22.3? Is it a regression in 5.22.4?
Comment 4 techxgames 2021-08-01 07:52:01 UTC
(In reply to Nate Graham from comment #3)
> Hmm, yeah, that. I see that the "Plasma" entry exists on my system. But I
> can see from your screenshot that you don't have it.
> 
> Do you recall whether this worked in 5.22.3? Is it a regression in 5.22.4?

I unfortunately can't.  I only checked now because I reinstalled and re-enabled Latte Dock again try and fix my default Latte layout.
Comment 5 techxgames 2021-08-01 07:53:28 UTC
(In reply to Nate Graham from comment #3)
> Hmm, yeah, that. I see that the "Plasma" entry exists on my system. But I
> can see from your screenshot that you don't have it.
> 
> Do you recall whether this worked in 5.22.3? Is it a regression in 5.22.4?

comment #4 was about my KDE Neon Testing setup.

As for my Kubuntu 21.04 setup, it was working before 5.22.4, IIRC.
Comment 6 techxgames 2021-08-01 07:55:43 UTC
I just checked my Neon Unstable setup, and it's gone here, too.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-63-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-4510U CPU @ 2.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4400
Comment 7 techxgames 2021-08-01 08:55:01 UTC
I just ran a test, and see what happens if I added another panel with icons-only task manager, and it worked!

And I noticed that the Latte entry in shortcuts with the task manager shortcuts would disappear.  When I ran latte-dock --replace, it went back, but the Plasma entry disappeared.

It's like Latte and Plasma shortcuts are fighting for attention, and whichever shows up last will overwrite the other.
Comment 8 Nate Graham 2021-08-02 16:41:17 UTC
Interesting.

I wonder if this is a regression from https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/495, which was backported to Plasma 5.22.4. Could Latte be using the same ID as Plasma? This would cause them to fight.
Comment 9 Michail Vourlakos 2021-08-02 21:15:00 UTC
(In reply to Nate Graham from comment #8)
> Interesting.
> 
> I wonder if this is a regression from
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/495, which was
> backported to Plasma 5.22.4. Could Latte be using the same ID as Plasma?
> This would cause them to fight.

Of course it does because the shortcuts ids are considered to be unique at per application basis not globally. If new code is not considering the above statement then the new kglobalaccel code is false.
Comment 10 Nate Graham 2021-08-04 15:57:50 UTC
David, any comments on that? I backported https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/495 to 5.22.4, so it could be a coincidence, or perhaps that caused the regression.
Comment 11 David Redondo 2021-08-05 07:17:40 UTC
The above commit only affects how component ids are mapped to user visible strings. The KCM should never hide something, it will just display the id instead.

As far as I understand the "Plasma" component is missing? I have no idea how it would happen. For shortcuts missing I cannot reproduce, if I start latte after Plasma, I see both entries just that the Latte shortcuts will have no key sequence since it is already taken by Plasma.

Can you attach your kglobalshortcutsrc and mention to which broken state the attached file corresponds?
Comment 12 techxgames 2021-08-05 07:52:47 UTC
Created attachment 140535 [details]
KGlobalShortcuts from my Kubuntu 21.04
Comment 13 techxgames 2021-08-05 07:54:28 UTC
Created attachment 140536 [details]
KGlobalShortcuts from KDE Neon Testing Edition
Comment 14 David Redondo 2021-08-05 07:55:37 UTC
[plasmashell]
_k_friendly_name=Latte Dock

[lattedock]
_k_friendly_name=Latte Dock

So both latte and plasma somehow set their names "to latte dock".
Comment 15 techxgames 2021-08-05 08:03:58 UTC
(In reply to David Redondo from comment #14)
> [plasmashell]
> _k_friendly_name=Latte Dock
> 
> [lattedock]
> _k_friendly_name=Latte Dock
> 
> So both latte and plasma somehow set their names "to latte dock".

I decided to check it out after you asked for the file and was about to ask that same thing.
Comment 16 techxgames 2021-08-05 08:12:18 UTC
(In reply to David Redondo from comment #14)
> [plasmashell]
> _k_friendly_name=Latte Dock
> 
> [lattedock]
> _k_friendly_name=Latte Dock
> 
> So both latte and plasma somehow set their names "to latte dock".

I think the first one is for the more traditional keybinding where Meta+1 will activate the first task manager entry.  The second one is supposed to be for the one where a keybinding will activate a plasmoid + latte task entry.  For example, Meta+1 will trigger my Kickoff launcher, then Meta+2 will activate the first task manager entry (I think that's how it goes IIRC, but I never used it).
Comment 17 techxgames 2021-08-05 08:16:08 UTC
OMG! I haven't tried this yet on Kubuntu laptop, but it's fixed on my Neon Testing desktop.

I renamed the one with "plasmashell" as "Plasma", and I remapped everything to Latte Dock.  It worked!
Comment 18 techxgames 2021-08-05 08:41:12 UTC
It worked on my Kubuntu laptop as well, but only issue now is that Meta+1 is triggering my Application Dashboard instead of just the first task entry.

I followed the guide [here](https://github.com/psifidotos/Latte-Dock/wiki/Tips-&-Tricks#q-can-i-disable-unified-global-shortcuts-feature-introduced-with-v08) by disabling unified global shortcuts.  Didn't work.  My Neon Testing desktop is fine, though.
Comment 19 Michail Vourlakos 2021-08-05 10:26:48 UTC
(In reply to techxgames from comment #18)
> It worked on my Kubuntu laptop as well, but only issue now is that Meta+1 is
> triggering my Application Dashboard instead of just the first task entry.
> 
> I followed the guide
> [here](https://github.com/psifidotos/Latte-Dock/wiki/Tips-&-Tricks#q-can-i-
> disable-unified-global-shortcuts-feature-introduced-with-v08) by disabling
> unified global shortcuts.  Didn't work.  My Neon Testing desktop is fine,
> though.

There is an option in Tasks advanced page to use only tasks with global on position shortcuts.
Comment 20 techxgames 2021-08-05 21:30:56 UTC
Just want to update y'all
While my Latte keybindings aren't borked anymore, plasmashell's name got renamed to Latte dock again in kglobalshortcutsrc.

Any idea what's causing the renaming?
Comment 21 Nate Graham 2022-09-08 05:07:41 UTC
These all seem like latte-specific issue at this point; moving there.
Comment 22 Michail Vourlakos 2022-09-17 12:07:43 UTC

*** This bug has been marked as a duplicate of bug 447744 ***
Comment 23 Michail Vourlakos 2022-09-17 12:08:10 UTC
(In reply to Nate Graham from comment #21)
> These all seem like latte-specific issue at this point; moving there.

it is a Notifications applet issue, not Latte: https://bugs.kde.org/show_bug.cgi?id=447744