labwc / labwc-tweaks

A Qt configuration tool for labwc
GNU General Public License v2.0
24 stars 8 forks source link

use XDG_DATA_DIRS please #102

Open ukiyocode opened 2 months ago

ukiyocode commented 2 months ago

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 commented 1 month ago

We iterate over XDG_DATA_DIRS

See https://github.com/labwc/labwc-tweaks/blob/ae32a9f4f9e3e5450d8ac7648c7b880a63a9227d/src/theme.c#L172-L177

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

ukiyocode commented 1 month ago

yep, bunch of paths separated by :