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
@@ -199,7 +199,7 @@ pub fn XdgDirs::from_env() -> XdgDirs {
|
||||
let parts = fn(s : String) -> Array[String] {
|
||||
s.split(":").filter(p => p.length() > 0).map(p => p.to_string()).collect()
|
||||
}
|
||||
// Flatpak's exports, as the launcher scans them (flatpak usually puts them in XDG_DATA_DIRS).
|
||||
// Flatpak's exports (flatpak usually puts them in XDG_DATA_DIRS).
|
||||
let data_dirs = parts(or("XDG_DATA_DIRS", "/usr/local/share:/usr/share"))
|
||||
for d in [home + "/.local/share/flatpak/exports/share", "/var/lib/flatpak/exports/share"] {
|
||||
if !data_dirs.contains(d) {
|
||||
@@ -235,7 +235,7 @@ pub fn XdgDirs::mimeapps_files(self : XdgDirs) -> Array[String] {
|
||||
out
|
||||
}
|
||||
|
||||
///| applications dirs, highest priority first (the launcher's `app_dirs` lists them lowest first).
|
||||
///| applications dirs, highest priority first.
|
||||
fn XdgDirs::app_dirs(self : XdgDirs) -> Array[String] {
|
||||
let out = [self.data_home + "/applications"]
|
||||
for d in self.data_dirs {
|
||||
|
||||
Reference in new issue
Block a user