-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple desktop file entries are shown #17
Comments
Thank your the issue and good to see you again :) If my eyes are not deceiving me, one of them is the history entry (in white) and one is the actual desktop file. I am aware of this behaviour, but I always felt it's not worth going through the effort of attempting to sort out items that are already appended from history. We can't Existing solutions found on the internet usually deal with duplicates not appearing again, while we need more or less the opposite behaviour. Maybe this could be adapted so it cleans out the PROVIDERS while using HIST_LINES as a reference... dunno So I have not yet found a simple solution for this and could not bring myself to dig deep into this, honestly. If you have some ideas on how to do this elegantly or could even provide a PR, then I'd happily look at it, though |
Thanks for the info. If I find the time, I can try to whip up a PR during the weekend, but no promises 😄 |
Okay I have to say that I think my bash/unix skills are not to par to be able to fix this. I hope somebody else will take on the challenge 😄 |
should we expect this behavior to disappear? it's still annoying)) |
For now, it is a conscious tradeoff because I believe the cost of fixing it is too high. We'd have some 10k lines to check for duplicates (while keeping sort order) on every invocation, so it might come at a performance penalty in addition to the complexity of the implementation itself. I would be very happy about suggestions to solve this elegantly though |
I've investigated this a bit too, and from what I found, it's because
Maybe we could make it prioritize EDIT: It does actually does this. Just tested again after deleting the history file, now it doesn't show duplicates anymore. |
Yeah there's a test for this behaviour. This issue here is really about the fact that the contents of the history file are essentially tacked on after the commands and desktop entries have been produced. It is not trivial to remove the duplicates resulting from this behaviour under the constraints that we have (support arbitrary providers & keep history entries at the bottom). Possible, sure, but probably not in a handful of lines and probably not without a performance hit. |
As the title says, the launcher has been showing multiple entries for (I think) all desktop files.
Here is a screenshot
The text was updated successfully, but these errors were encountered: