https://bugs.kde.org/show_bug.cgi?id=484682

--- Comment #13 from Dmitrii Chermnykh <chermnykh2...@gmail.com> ---
(In reply to Nicolas Fella from comment #10)
> (In reply to Naxdy from comment #5)
> > I've been able to confirm that simply commenting out this line (
> > https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/47/
> > diffs?view=inline#014186ddf2dd1aa75709115400e25e06ba6e2d47_260_262 ) fixes
> > the issues on NixOS. Both shortcuts resetting and the glitchy behavior of
> > duplicate entries being present.
> > 
> > It seems that either component->uniqueName() is not correctly resolving to
> > the .desktop file's name, or that
> 
> Can you tell what the value of component->uniqueName() is?
>  
> > QStandardPaths::locate(QStandardPaths::GenericDataLocation,
> > QLatin1String("kglobalaccel/") + component->uniqueName()).isEmpty()
> > 
> > is not looking in the right place for desktop files.

For me in PyQT it resolves to the correct file and qdbus shows that
`component->uniqueName()` for spectacle is `org.kde.spectacle.desktop`

In [17]:
QStandardPaths.locate(QStandardPaths.StandardLocation.GenericDataLocation,
"kglobalaccel/org.kde.spectacle.desktop")
Out[17]: '/run/current-system/sw/share/kglobalaccel/org.kde.spectacle.desktop'

qdbus org.kde.kglobalaccel /component/org_kde_spectacle_desktop
org.kde.kglobalaccel.Component.uniqueName
org.kde.spectacle.desktop

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to