nwg-piotr / nwg-look

GTK3 settings editor adapted to work in the wlroots environment
MIT License
525 stars 16 forks source link

~/.icons/default folder should get created if it does not exist #45

Closed simonfogliato closed 1 year ago

simonfogliato commented 1 year ago

If you set a custom cursor theme without that folder, index.theme will never be created and the settings are not properly applied. For any updated setting file nwg-look should create the folder if it does not exist.

~/.icons/default/index.theme

Workaround:

mkdir -p ~/.icons/default

nwg-piotr commented 1 year ago

Thanks. I'll take a look at this.

nwg-piotr commented 1 year ago

This has already been done here: https://github.com/nwg-piotr/nwg-look/blob/f0f9f7278d7cbaa85862ad9a0ab42886c5938d61/tools.go#L858

simonfogliato commented 1 year ago

I just did another quick test...

  1. cd ~
  2. mv .icons .icons_test
  3. Open nwg_look and select any new valid mouse cursor
  4. Click apply on the gui
  5. ls -la
  6. The .icons folder does not exist... The .icons folder does not get created...

If it helps the following is my entire setup: https://github.com/simonfogliato/dotfiles/blob/main/executable_arch.sh

pacman -Qm nwg-look nwg-look 0.2.4-1

simonfogliato commented 1 year ago

I did a quick search and when I move the folder "mv .icons .icons_test" and apply a new cursor it will update the following file:

/home/sfogliato/.local/share/icons/default/index.theme

So it would seem to write in a different location.

nwg-piotr commented 1 year ago

The program looks for the icons folder in:

in this certain order. The first location found will be used in further code execution. In case we find none of above, you'll see the Couldn't find icons folder warning in the command output. Run in terminal to check.

simonfogliato commented 1 year ago

That's it! Thanks for clearing this up.