-
Notifications
You must be signed in to change notification settings - Fork 603
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
[REQUEST] Load themes from XDG_DATA_DIRS #1617
Comments
This was not done as themes might not be backwards compatible. So if you have multiple versions of rofi installed (f.e. in /usr from dist and /usr/local by hand) it should find the matching themes of the install, not all. |
I see. Well, that should really up to be the package manager, isn't it? I mean most package managers can handle conflicts. But I understand that not all installations might happen via a package manager. How about an optional setting then (eg. env var) that either enables searching in XDG_DATA_DIRS or accepts a list of additional paths to search in?
On that note: is there a test command in rofi to make sure a given theme is compatible with it? It would help build scripts/CI determine if a set of themes can be packaged for a specific rofi version. |
The themes seem to be stabilizing after we moved to the new engine a few years back and deprecating the old format. (rofi -rasi-validate exists, but only check if it parses.) |
Do you want me to draft a PR adding XDG_DATA_DIRS to the search paths?
Is there anything else necessary to ensure the theme is valid and will work? |
Currently i don't think so, the major changes are done. its now more adding features (like tab-stop) and the language constructs for it. so the -rasi-validate should be sufficient. |
I think that should do it? |
Looks good, thanks! I'll give it a try later. |
Did it work? |
Yeah, it worked. |
thanks. |
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. |
Before opening a feature request
What is the user problem or growth opportunity you want to see solved?
When installing themes as packages (using OS package manager), packages might not always end up in /usr (eg. in case of NixOS). As a result, Rofi won't find themes installed as packages.
By adding XDG_DATA_DIRS to the list of search paths (install dir, XDG_DATA_DIRS, XDG_DATA_HOME, XDG_CONFIG_HOME), Rofi could find themes in other (standard) locations.
How do you know that this problem exists today? Why is this important?
Tried to install themes using Nix and they are not discovered. Also checked the relevant code.
Who will benefit from it?
NixOS users will certainly will benefit, but anyone else who installs software in non-standard locations would also benefit.
Rofi version (rofi -v)
1.7.3
Configuration
N/A
Additional information
As far as I understood, it should be added above this line:
rofi/source/helper.c
Line 1095 in eff3b86
The text was updated successfully, but these errors were encountered: