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

            Bug ID: 510287
           Summary: Application Launcher not using overridden system
                    .desktop entries
    Classification: Plasma
           Product: plasmashell
      Version First 6.4.5
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Application Launcher (Kickoff) widget
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: 1.0

Created attachment 185545
  --> https://bugs.kde.org/attachment.cgi?id=185545&action=edit
application-menu-after-edit

SUMMARY

I’m trying to override a global/system Desktop Entry in KDE, but my user-level
changes in ~/.local/share/applications/ aren’t reflected in the KDE application
launcher menu.

I made the same change on another system where it works flawlessly, so I’m a
bit puzzled why it doesn’t on this machine.

STEPS TO REPRODUCE

1. Edited the desktop file with:
$ desktop-file-install --dir="$HOME/.local/share/applications" \
  --set-key=Exec \desktop-file-install --dir="$HOME/.local/share/applications"
\
  --set-key=Exec \
  --set-value="/opt/google/chrome/google-chrome
--disable-features=GlobalShortcutsPortal %U" \
  /usr/share/applications/google-chrome.desktop

2. The expected diff is:
$ diff /usr/share/applications/google-chrome.desktop
~/.local/share/applications/google-chrome.desktop

108c108
< Exec=/usr/bin/google-chrome-stable %U
---
> Exec=/opt/google/chrome/google-chrome 
> --disable-features=GlobalShortcutsPortal %U
115a116
> X-Desktop-File-Install-Version=0.28

OBSERVED RESULT

The change of the desktop file is not picked up in the KDE Application
Launcher.

<see attachment>

EXPECTED RESULT

The change of the desktop file should be picked up in the KDE Application
Launcher.

WHAT I'VE TRIED (unsuccessful)

    * Deleting ~/.cache/ksycoca5* and running kbuildsycoca5 --noincremental
    * Doing the same with kbuildsycoca6
    * Running update-desktop-database ~/.local/share/applications

Interestingly, if I rename the desktop entry to
~/.local/share/applications/google-chrome-test.desktop, the KDE menu updates
correctly but obviously shows a duplicated entry.

This suggests the issue might be related to desktop file precedence?

RELATED ENV VARS

XDG_DATA_DIRS=/home/matthias/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20251002
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 32 GiB of RAM (29.0 GiB usable)
Graphics Processor: AMD Radeon 780M

REFERENCES

*
https://forums.opensuse.org/t/trouble-overriding-global-desktop-entry-in-kde-plasma-6/188593

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

Reply via email to