You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the next branch to see if the feature has already been implemented
I searched existing reports to see if it is already requested.
What is the user problem or growth opportunity you want to see solved?
It would be nice if either $HOME or ~ (or both) get interpolated in the config file to point to the user's home directory.
Currently, I have to set cache-dir: "/home/nion/.local/share/rofi/rofi.cache"; instead of being able to use something like cache-dir: "~/.local/share/rofi/rofi.cache"; as in most configurations. This makes the config not portable across different usernames.
How do you know that this problem exists today? Why is this important?
Without path interpolation, the config is not portable and cannot be shared between different users.
Who will benefit from it?
Everyone who uses the cache-dir setting (or other paths?) with different user names.
On UNIX platforms this is determined using the mechanisms described in the XDG Base Directory Specification. In this case the directory retrieved will be XDG_CACHE_HOME.
On Windows it follows XDG Base Directory Specification if XDG_CACHE_HOME is defined. If XDG_CACHE_HOME is undefined, the directory that serves as a common repository for temporary Internet files is used instead. A typical path is C:\Documents and Settings\username\Local Settings\Temporary Internet Files. See the documentation for FOLDERID_InternetCache.
So it should be perfectly portable between users as there should be 0 use for setting a custom cache-dir.
I will fix the handling and auto expand ~{user}/ as that is a trivial fix.
Thank you for the fast implementation, I successfully tested with cache-dir: "~/.local/share/rofi/rofi.cache"; 👍
So it should be perfectly portable between users as there should be 0 use for setting a custom cache-dir.
I'm setting cache-dir to move the command history into a persistent place (see #769), since caches are commonly skipped by many backup tools, but I want to preserve my command history.
Are there any other things that are stored in the cache in addition to the command history? I only have rofi-3.runcache in my cache folder.
Before opening a feature request
What is the user problem or growth opportunity you want to see solved?
It would be nice if either
$HOME
or~
(or both) get interpolated in the config file to point to the user's home directory.Currently, I have to set
cache-dir: "/home/nion/.local/share/rofi/rofi.cache";
instead of being able to use something likecache-dir: "~/.local/share/rofi/rofi.cache";
as in most configurations. This makes the config not portable across different usernames.How do you know that this problem exists today? Why is this important?
Without path interpolation, the config is not portable and cannot be shared between different users.
Who will benefit from it?
Everyone who uses the
cache-dir
setting (or other paths?) with different user names.Rofi version (rofi -v)
1.7.5
Configuration
https://gist.github.com/nioncode/5d0b5d640df770047a5bc38a4a3efc6f
Additional information
No response
The text was updated successfully, but these errors were encountered: