| Summary: | Duplicate menu entries after editing desktop file | ||
|---|---|---|---|
| Product: | [Applications] kmenuedit | Reporter: | xiota <kde> |
| Component: | general | Assignee: | Oliver Beard <olib141> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | olib141 |
| Priority: | NOR | ||
| Version First Reported In: | 6.0.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
xiota
2024-04-02 20:06:10 UTC
Sounds like someone, somewhere, used QString::indexOf(".desktop") instead of lastIndexOf. 😄
I cannot reproduce this in git master or 6.3.2 with the telegram-desktop arch package. Is this with the flatpak? Thanks for looking into it. This issue can be closed now as resolved/fixed. I opened the issue a year ago, and KMenuEdit looks much different from back then. So whatever was causing the problem was probably revised away along with other changes. I tested a moment ago with a file named `test.desktop.desktop`, and KMenuEdit 6.3.3 seems to handle it correctly. The problem had occurred with `extra/telegram-desktop`. I rarely edit menu items, and had added the problem file to the package manager ignore list. I downloaded KMenuEdit 6.0.3 from https://archive.archlinux.org/repos/2024/04/02/extra/os/x86_64/kmenuedit-6.0.3-1-x86_64.pkg.tar.zst to test. It seems to behave correctly. Could the problem have been from something outside of KMenuEdit, like a different KDE or Qt6 component? (In reply to xiota from comment #4) > Could the problem have been from something outside of KMenuEdit, like a different KDE or Qt6 component? It could have been in KConfig/KDesktopFile. I'll close for now, thanks for following-up. |