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

use XDG_DATA_DIRS please #102

Open
ukiyocode opened this issue Sep 26, 2024 · 2 comments
Open

use XDG_DATA_DIRS please #102

ukiyocode opened this issue Sep 26, 2024 · 2 comments

Comments

@ukiyocode
Copy link

Correct me if i'm wrong but i think this program uses hard coded paths to search for themes, if so then it would be better to use paths from XDG_DATA_DIRS environmental variable because for example nix home manager uses ~/.nix-profile/share/themes to store themes and ~/.nix-profile/share/icons to store cursor themes, which this program doesn't seem to find.

@johanmalm
Copy link
Collaborator

We iterate over XDG_DATA_DIRS

See

labwc-tweaks/src/theme.c

Lines 172 to 177 in ae32a9f

{ "XDG_DATA_HOME", "" },
{ "HOME", ".local/share" },
{ "XDG_DATA_DIRS", "" },
{ NULL, "/usr/share" },
{ NULL, "/usr/local/share" },
{ NULL, "/opt/share" },

Although it looks like we don't respect : as a separator within that env var. Is that what you've got?

@ukiyocode
Copy link
Author

yep, bunch of paths separated by :

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

2 participants