-
Notifications
You must be signed in to change notification settings - Fork 47
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
tofi-drun is missing correctly configured .desktop files #115
Comments
I just ran into what seems like the same issue. I fixed it by deleting the cache files mentioned here. It seemed like these got regenerated as needed on my Arch system, I'm not sure what NixOS is/isn't doing to cause them not to be. |
I am also facing this issue on Nix. The file has an outdated list of my actual desktop entries and is not "regenerating as needed." Mine correctly pulls from $XDG_DATA_DIRS/applications, but just isn't refreshing the file. Manually deleting the tofi-drun file does cause it to be regenerated successfully. |
Hey, thanks for the report and sorry for the long delay. Tofi indeed caches a list of found This apparently isn't 100% reliable, but startup speed is my main concern with tofi. I might try to have a look into nix at some point, to see if this is a frequent issue there, but yeah as an interim solution deleting the cache will force it to be regenerated and should fix any issues. |
For home.activation = {
# https://github.com/philj56/tofi/issues/115#issuecomment-1701748297
regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
tofi_cache=${config.xdg.cacheHome}/tofi-drun
[[ -f "$tofi_cache" ]] && rm "$tofi_cache"
'';
}; |
TL;DR:
tofi-drun
is missing applications thatfuzzel
displays.If I had to guess, I would say this bug is related to that fact that I'm using a non-standard system from the XDG point-of-view; I'm running NixOS with Home Manager.
The missing desktop files are located in
/etc/profiles/per-user/jsimonrichard/share/applications
, and the parent directory of that folder is in XDG_DATA_DIRS. If you're familiar with NixOS and want to take a look at my config, you can: https://github.com/jsimonrichard/nix-config. But it's very much a work in progress. What's strange is thattofi-drun
displays some of the applications in that directory; I suppose those working desktop files could be duplicated somewhere else, but if they are I can't find them. They're not in any of the directories listed in XDG_DATA_DIRS.The text was updated successfully, but these errors were encountered: