-
Notifications
You must be signed in to change notification settings - Fork 623
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
Don't store command history inside ~/.cache #769
Comments
I always found history data non-essentials (and nuke it occasionally). But I can see people relying on it. |
It's a tricky one. Perhaps it's worth following in the footsteps of bash
and zsh, something like `~/.rofi-history`?
|
For comparison, gtk stores its “recently used places” files in |
Can you explain your reasoning for this? I don't think applications should purposefully avoid a standard. I also find it frustrating that this "command history" cache exists at all - or at least that it persists across reboots. Commands, once called via |
@bddenhartog You can disable history in the config file and you can delete (wrong) entries with a keybinding in rofi. See manpage. |
@sudoforge Not sure why you linked that URL, maybe you meant this one? If so, it specifically states thate Non-essential cached data is data that can be regenerated if lost, albeit perhaps more slowly. (For example, it may need to be retrieved from a remote source, or recomputed). The purpose of a cache is to speed up access, rather than store persistent state. Clearing a cache should have no observable effects besides degrading performance. If you look at other examples of programs that store files in An acceptable use of |
Any news on this? I want to move my ~/.cache onto tmpfs. The loss of my rofi history is the only obstacle. I rely on it quite heavily. |
Added option to move the location of the files. |
I gott say I think ~/.local/share/rofi/rofi.cache seems to fit the bill on this one dave. |
That was some prompt action. Thank you @DaveDavenport, much appreciated! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
➡️ First read the guidelines! ⬅️
Version
Configuration
https://0x0.st/sc9d.txt
Launch Command
rofi -show run
Steps to reproduce
What behaviour you see
What behaviour you expect to see
Extra notes
~/.cache seems like a poor fit for what's essentially a command history. A better fit, to me, would be ~/.local/share/. Nuking ~/.cache should not drastically modify application functionality - but in rofi, deleting my entire command history impacts my ability to easily start the commands I frequently start.
Applications should be designed to be robust against ~/.cache going away.
The text was updated successfully, but these errors were encountered: