Launcher: pick up web apps as they are installed, categories, scrolling
CI / test (push) Failing after 49s
CI / test (push) Failing after 49s
- Read the app catalog again when the Applications menu opens if .desktop files were added or removed (and on Reload); it was only read at login, so a PWA installed during the session was missing from the menu and its search
- List a Chromium browser's web apps in their own category ("Chrome Apps", "Chromium Apps", ...), as Plasma does; don't take one for the default browser
- Category column and a scrollable list (wheel, scrollbar) when the catalog doesn't fit the menu
- Show menu-spec main category names instead of the first Categories= entry; sort apps A-Z (they were sorted shortest name first)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa92aaac6f
commit
68baf1a467
11 files changed
+578
-109
No files matched your search
@@ -80,8 +80,9 @@ test "the dock is the panel's task manager: empty + opens Applications, pin from
|
||||
let launcher = comp.shell.slot_of("launcher")
|
||||
let pr = comp.shell.slot_popup_rect(launcher)
|
||||
assert_true(pr.w > 0)
|
||||
// (The apps are right of the category column, when the machine has enough of them for one.)
|
||||
// Right-click the first app there: Open, Pin to dock. Pinning keeps the menu open.
|
||||
click_at(comp, pr.x + 40, pr.y + 60, 20U, btn=273U)
|
||||
click_at(comp, pr.x + pr.w - 60, pr.y + 60, 20U, btn=273U)
|
||||
assert_true(comp.shell.menu_open)
|
||||
assert_eq(comp.shell.menu_rows.map(r => r.label), ["Open", "Pin to dock"])
|
||||
let first = comp.shell.menu_title
|
||||
@@ -91,7 +92,7 @@ test "the dock is the panel's task manager: empty + opens Applications, pin from
|
||||
let pinned = comp.shell.module_setting("dock", "pinned").unwrap_or("")
|
||||
assert_true(pinned.length() > 1 && pinned != ";")
|
||||
// The same app's menu now offers Unpin.
|
||||
click_at(comp, pr.x + 40, pr.y + 60, 30U, btn=273U)
|
||||
click_at(comp, pr.x + pr.w - 60, pr.y + 60, 30U, btn=273U)
|
||||
assert_eq(comp.shell.menu_title, first)
|
||||
assert_true(comp.shell.menu_rows.map(r => r.label).contains("Unpin from dock"))
|
||||
comp.handle_input(@nested.InputEvent::Key(1U, true), 35U) // Escape closes the menu
|
||||
|
||||
Reference in new issue
Block a user