Bug 447656 - Only badge for appliation dashboard is shown upon long super press.
Summary: Only badge for appliation dashboard is shown upon long super press.
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.10.6
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-29 19:21 UTC by tomashnyk
Modified: 2021-12-30 21:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
These are the packages on my system that have something to do with unity. Am I missing any? (155.70 KB, image/png)
2021-12-29 19:22 UTC, tomashnyk
Details
I already have those enabled (133.49 KB, image/png)
2021-12-29 20:27 UTC, tomashnyk
Details
Trash configuration does not have a shortcut, as far as I can see. (59.35 KB, image/png)
2021-12-30 16:24 UTC, tomashnyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomashnyk 2021-12-29 19:21:21 UTC
I might well be missing something, but I have installed libunity-dev and restarted latte-dock after re-installing it (in fact I think I installed it a few days ago). Pressing the key "super" works to open the application dashboard, when I long-press it, a badge (or hint - not sure about the terminology) appears for the application dashboard but not for any of the application launchers (you might be referring them to as "indicators", but I am not sure). The feature I am after is the one at 2:48 here : https://www.youtube.com/watch?app=desktop&v=JtvsB0IKriU#dialog

I am on Kubuntu 21.10 with Plasma 5.23 and Latte Dock 10.6 from the upstream ppa. I suspect I must be doing something wrong, but cannot think of anything.
Comment 1 tomashnyk 2021-12-29 19:22:04 UTC
Created attachment 144939 [details]
These are the packages on my system that have something to do with unity. Am I missing any?
Comment 2 Michail Vourlakos 2021-12-29 19:42:18 UTC
you need to enable these shortcuts in order to be shown.

Go to plasma systemsettings->Shortcuts->Latte Dock
and enable all "Activate Entry...." records
Comment 3 tomashnyk 2021-12-29 20:27:59 UTC
Created attachment 144942 [details]
I already have those enabled

But as you can see, there is another shadow "Latte Dock" application that has none of them set. No idea how it got there and how to get rid of that, but probably not a Latte bug then (I do not think I installed it twice or something like that).
Comment 4 Michail Vourlakos 2021-12-29 20:47:50 UTC
You need to set them at the second latte record. The first one is deprecated from older latte versions.
Comment 5 tomashnyk 2021-12-29 21:08:29 UTC
Aha, ok, that was not obvious at all:-). I hope the deprecated one will get deleted eventually:-). Thanks for the support!

Anyway, now it works. Two points:

1) As application dashboard has its own shortcut (super and super+F1), the numbering starts from 2. And super+1 does not actually launch application dashboard. Not sure if this is a bug but it feels slightly unexpected.
2) It would make a lot of sense for my setup to be able to have a "open last(=lowest) application on the dock" - by using a dynamic spacer, trash will always be last for me. Not sure if I am the only one doing it like this. Not sure how to implement this in the UI - I would need just one shortcut like this but I can imagine people putting more than one indicator at the bottom. I am also thinking if there are people for whom the natural order would be from the bottom, probably not, but there definitely would be people (any RTL language) that would start from right to left. But for them to be able to set the direction would still not solve my issue:-).
Comment 6 Michail Vourlakos 2021-12-29 23:50:20 UTC
For your trash just do the following,
unassign last shortcut from Latte entries. 
Go afterwards to trash applet config window and assign that shortcut to it.
Per plasma applet shortcuts work just fine with latte.
Comment 7 tomashnyk 2021-12-30 16:24:42 UTC
Created attachment 144973 [details]
Trash configuration does not have a shortcut, as far as I can see.

And neither have I found it in the system settings. I mean, it is not a big deal, I can set up a shortcut for "dolphin ~/.local/share/Trash/files". I am more discussing the general logic of enumerating the launchers:

1) First, application launchers (like Application Dashboard and Application Menu seem to have a unique treatment and whichever was added as the last to the panel gets to be launched by the super key). But they are not skipped when enumerating the other launchers, so it leads to weird gaps (as the list starting with "2" I mentioned earlier). I think they should be skipped (and I kind of thing this is more a bug then a feature).

2) In general, any applet that has assigned a shortcut tries to show that shortcut. However, it only seems to show the last key of the shortcut. I added "Backup Stats" and assignedd CTRL+3 to it. When I longpress Super, there are now two launchers that show "3". Rather confusing. Not sure how to deal with the UI to show the modifier, with very long shortcuts, that could get messy. I also think this is a bug (a minor one).

3) As the number of icons on the dock is variable (I can launch an app that I do not have pinned to the dock), when used with the justify splitters, the icons that are not dynamic (trash in my example) gets a dynamic shortcut, for me a bit counterintuitively - it definitely does not help with mnemonics. But I can see that this is probably an issue with the trash applet because it cannot be assigned a shortcut because. However, a feature to allow assigning shortcuts from the last to the first would help with this. About the RTL support, I guess it would make sense to automatically pick if the system is RTL and then enumerate it in that way, but I do not understand RTL so I will let it be. But really this is not such a big deal to me, the first two issues are more definitely akward in my opinion.
Comment 8 Michail Vourlakos 2021-12-30 17:52:44 UTC
1) No I dont agree. They shouldnt be skipped because they might have also another shortcut to them. Based on position means based on position. Meta+1 works just fine and Pressing Meta also if the first applet is an application launcher

2) Not being messy its a choice. I am open to hear alternatives or what others do better in that regard. Saying something is a bug means also that someone should provide a solution to be discussed. What currently  is provided is that "<Modifier> + z" shows a small "z" but "Modifier + Modifier +Z" shows a capital "Z"

3) Trash not having a shortcut assignment in its settings (btw I didnt know it but I confirm that it is this way) this a Trash bug not a Latte one and you should report it to plasma devs

3*) RTL works just fine with Latte even with its settings.... To test Latte for RTL or any other qt application you can run in terminal. "latte-dock --reverse" everything appears on reverse order afterwards. Latte is fully RTL compliant since v0.9.x era
Comment 9 Michail Vourlakos 2021-12-30 17:53:57 UTC
latte-dock -reverse
Comment 10 tomashnyk 2021-12-30 21:22:11 UTC
Regarding 2) - I would think it more user friendly to just show all the modifiers, at least when there is enough space on the icon, but I think it could also overflow the icon (so it would all be on one line). So in practice if I assign CTRL+Z, it would show just that, CTRL and Z. Now one does not know if it means CTRL+Z, ALT+Z or SHIFT+Z. The overlay is not shown always, after all, so it does not need to be superpretty and can overflow - I do not think it would be ugly anyway.

Regarding the skipping, it is true I am probably looking at it from a Unity 7's user perspective, where one could not assign different numbers and the launcher was always at the top, so it made sense to skip it and there was always an ordered list displayed. Latte is more configurable and so slightly more messy.

I think there are two ways that would be be slightly better than the current state:

a) One where you just show the shortcuts assigned through Latte by default even if the item has its own shortcut (non-Latte shortcuts could be shown as a fallback when the shortcuts in Latte are not set). By default there is a list and if you need a hint, it is because it is faster to have the number (or another key) shown than counting if it is sixth or seventh. The shortcuts assigned to items from 1 to n are more likely to be consistend, so it would usually be faster to process them than custom application shortcuts.

b) you skip the items that have other shortcuts so that in the end you can use more shortcuts overall.

By the way, I have not found a setting to adjust the delay of the shortcuts (and I think this is something that should just have a good default) and they appear a bit late, in about one second, I think it should be less, around half a second. But that is just my guess, not sure if there is any research on this.