https://bugs.kde.org/show_bug.cgi?id=487941
Paul <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #14 from Paul <[email protected]> --- Two open merge requests address this bug but aren't linked here yet, so linking them for visibility: - https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/135 ("Reload desktop entries before launching service shortcuts"): re-reads the desktop entry on every activation. - https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/138 ("Refresh cached services after sycoca database changes"): replaces the cached KService when KSycoca::databaseChanged fires. An additional data point: this also happens without kcm_keys, when a .desktop file is edited by hand. Reproduced on Fedora 43, Plasma 6.7.4 (kglobalacceld 6.7.4), Frameworks 6.29, Qt 6.10.3, Wayland: 1. ~/.local/share/applications/net.local.example.desktop has X-KDE-GlobalAccel-CommandShortcut=true and is bound to a key in kglobalshortcutsrc ([services][net.local.example.desktop] _launch=Print). It has been triggered at least once in the session. 2. Change its Exec= (and Name=) and run "kbuildsycoca6 --noincremental". The ksycoca6 cache file timestamp shows that the database was rebuilt. 3. Press the shortcut about 16 seconds later. Result: the old Exec= is launched. The transient systemd unit that is created (app-net.local.example@<id>.service) also still carries the old Name= as its description. So the KService retained by the component is used, rather than the edited file. That matches comment 3. In current master, GlobalShortcutsRegistry::refreshServices() only drops components whose service has disappeared and calls detectAppsWithShortcuts() for new ones. An existing KServiceActionComponent keeps the KService::Ptr (m_service) it was constructed with, and emitGlobalShortcutEvent() launches that. As a result, edits to an already-registered entry are never picked up until kwin_wayland or kglobalacceld restarts. !138 changes exactly that, and !135 avoids the cached copy entirely. -- You are receiving this mail because: You are watching all bug changes.
