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

            Bug ID: 485105
           Summary: Application launcher is not updated when .desktop file
                    is changed
    Classification: Plasma
           Product: plasmashell
           Version: 6.0.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Application Launcher (Kickoff)
          Assignee: plasma-b...@kde.org
          Reporter: equ...@gmail.com
                CC: mikel5...@gmail.com, noaha...@gmail.com
  Target Milestone: 1.0

SUMMARY
When existing desktop file in ~/.local/share/applications is changed (not added
or removed, but changed), its application launcher item is not updated.

STEPS TO REPRODUCE
1. Change desktop file in ~/.local/share/applications in a visible way, e.g. by
changing its Name
2. Open application launcher

OBSERVED RESULT
App's name is not updated.

EXPECTED RESULT
App's name is updated.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
A bit of debugging leads me to believe that the cause of the issue is KSycoca
class in KService library.
KSycoca database is updated when either checkDirectoriesTimestamps or
checkFilesTimestamps functions return true:
https://invent.kde.org/frameworks/kservice/-/blob/master/src/sycoca/ksycoca.cpp?ref_type=heads#L581

However checkDirectoriesTimestamps works based on directories' mtime, which is
changed only when file is created or deleted, and checkFilesTimestamps only
checks ~/.config/mimeapps.list and /usr/share/applications/kde-mimeapps.list
files.

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

Reply via email to