Bug 377322

Summary: "Open with" menu can get polluted with extra entries
Product: [Frameworks and Libraries] frameworks-kio Reporter: Nate Graham <nate>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs, nate
Priority: NOR    
Version: 5.31.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Duplicate entries in "Open With" sub-menu

Description Nate Graham 2017-03-07 06:30:13 UTC
Plasma 5.9.2 on OpenSUSE Tumbleweed, dolphin-16.12.2-1.1

STEPS TO REPRODUCE:
1. Right-click on a file (in a Dolphin window or on the desktop)
2. Choose Open With > Other...
3. In the "Choose Application" window that appears, type the name of an application in the search field
4. Hit the OK button

Now the text string you typed in the search bar appears as a new entry in the Open With sub-menu. You can do this as many times as you want and it will happen again. Each entry works, but the menu becomes polluted with extra entries.
Comment 1 Elvis Angelaccio 2017-03-07 10:36:19 UTC
It should remember the application you chose only if you check the "Remember application association ..." checkbox. Did you check it?
Comment 2 Nate Graham 2017-03-07 14:53:23 UTC
Yes. But the point is, if I type "kate" into the search box and have it remember that, there should not be a new menu entry created; the menu already has a Kate entry in it.
Comment 3 Elvis Angelaccio 2017-03-08 15:56:00 UTC
I'm not sure I'm following you. Are you saying that you have duplicated entries? (e.g. two kate entries?)
Comment 4 Nate Graham 2017-03-08 17:00:43 UTC
Created attachment 104460 [details]
Duplicate entries in "Open With" sub-menu

Precisely. I've attached a screenshot that illustrates the problem.
Comment 5 Elvis Angelaccio 2017-03-08 17:31:35 UTC
Hmm you are right, I can reproduce now. This handled by kio, moving there.
Comment 6 Nate Graham 2017-09-29 18:01:35 UTC
Not *exactly* a duplicate, but this will be fixed by https://bugs.kde.org/show_bug.cgi?id=359233

Apparently, these duplicate entries are all commands, not app entries. Using that text box is entering commands, and `kate` is the command to launch Kate, so I didn't notice what was going on.

The patches in https://bugs.kde.org/show_bug.cgi?id=359233 implement a vastly better user experience.

*** This bug has been marked as a duplicate of bug 359233 ***