Skip to content
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

Old entries are still displayed #46

Closed
p00f opened this issue Jun 23, 2021 · 5 comments
Closed

Old entries are still displayed #46

p00f opened this issue Jun 23, 2021 · 5 comments

Comments

@p00f
Copy link

p00f commented Jun 23, 2021

Desktop entries from uninstalled programs are still displayed in the list, even after running sudo update-desktop-databse and deleting the launcher history file

For example, I get an entry for Covergrid here even after uninstalling it
image
On the top you can see that sed can't find the desktop file, which probably comes from here

description=$(sed -ne '/^Comment=/{s/^Comment=//;p;q}' "$1")

Can I clear it somehow?

@p00f
Copy link
Author

p00f commented Jul 6, 2021

@Biont where are the desktop entries taken from?

@Biont
Copy link
Owner

Biont commented Jul 6, 2021

I find it very strange that this happens after deleting the history file - because that's the only place where stale entries would be coming from. Are you using multiple providers and maybe missed one @p00f ?

The entries are read using this configuration: ${XDG_DATA_HOME-${HOME}/.local/share}:${XDG_DATA_DIRS-/usr/local/share:/usr/share}
There's no cache or anything at play here.

@p00f
Copy link
Author

p00f commented Jul 6, 2021

I add HIST_FILE="~/.local/state/swaylauncher_history" as an argument (because latest XDG spec says logs and history go to $XDG_STATE_HOME which is ~/.local/state). When I removed that argument and let it save in ~/.cache, the stale entries are gone.

Also earlier there were some duplicate entries, which are gone now too

@maricn
Copy link

maricn commented Jul 11, 2022

fixed by #58 - you can sway-launcher-desktop purge since v1.6.0

@Biont
Copy link
Owner

Biont commented Jul 11, 2022

Thanks @maricn

I tracked the useful remark about XDG_STATE_HOME in #65 so we can close here

@Biont Biont closed this as completed Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants