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

change_color.sh: Default theme location for gtk2 based apps #568

Open
rudrab opened this issue Apr 6, 2021 · 12 comments
Open

change_color.sh: Default theme location for gtk2 based apps #568

rudrab opened this issue Apr 6, 2021 · 12 comments

Comments

@rudrab
Copy link

rudrab commented Apr 6, 2021

Hi,
There are still some apps, e.g. pidgin, which is using gtk2. The problem is as materia-theme now uses meson build, which installs the theme in ~/.local/share, the location is invisible to pidgin.
Now, I have installed the materia theme using meson, and then copied it to ~/.themes again to make it visible to pidgin.

Is there any other way for gtk2 based apps?

@rudrab rudrab added the question label Apr 6, 2021
@nana-4
Copy link
Owner

nana-4 commented Apr 8, 2021

Hi, it seems GTK 2 themes aren't loaded from ~/.local/share/themes. Arc theme's installation doc has a note about that.

If I remember correctly, some other themes, on the other hand, aren't loaded from ~/.themes. So I'd recommend installing the theme under the default /usr, unless you have a particular reason.

@nana-4 nana-4 closed this as completed Apr 8, 2021
@actionless
Copy link
Collaborator

and which apps ca'nt see the theme under ~/.themes/ ?

@rudrab
Copy link
Author

rudrab commented Apr 29, 2021

@actionless as told in original post, pidgin is one such app.

@actionless
Copy link
Collaborator

actionless commented Apr 29, 2021

are you sure you answering the same question which i asked?

@nana-4
Copy link
Owner

nana-4 commented Apr 29, 2021

@actionless At least budgie-desktop can't/couldn't. Maybe there are/were more, but I don't remember others :/

@rudrab
Copy link
Author

rudrab commented Apr 29, 2021

are you sure you answering the same question which i asked?

@actionless no...i am sorry. Pidgin can actually see ~/.themes, not ~/.local/share/themes. Sorry for that.

@actionless
Copy link
Collaborator

actionless commented Apr 29, 2021

hm, i see they wrote:

Mutter/GTK started to break ~/.themes some time a

would be interesting to know more

if that thing gonna broaden, we'll probably have to change in change_color.sh (or inside meson config itself?) to move gtk2 theme under ~/.themes and the rest under .local/share

@actionless actionless reopened this Apr 29, 2021
@actionless
Copy link
Collaborator

btw, quite a low move (as usual :D) to change default theme location as soon as gtk2 development got officially frozen

@actionless
Copy link
Collaborator

btw, also gonna inter-link this here: themix-project/oomox-gtk-theme#45

@actionless actionless changed the title Theme not working in gtk2 based apps Default theme location for gtk2 based apps Apr 29, 2021
@nana-4
Copy link
Owner

nana-4 commented Apr 30, 2021

By default our meson installs the theme under /usr/share/themes, so this would be a change_color.sh specific issue :)

@nana-4 nana-4 changed the title Default theme location for gtk2 based apps change_color.sh: Default theme location for gtk2 based apps Apr 30, 2021
@nana-4
Copy link
Owner

nana-4 commented Apr 30, 2021

Personally I don't think it's great that some themes are in ~/.themes and others are in ~/.local/share/themes. Casual users would be confused, especially when uninstalling the themes.

IMO it would be the best to place all themes under /usr/share/themes, the safest theme location for every app. I'm not sure you'll agree with it as an Oomox author though.

@nana-4 nana-4 added the oomox label Apr 30, 2021
@actionless
Copy link
Collaborator

themix have the code already for elevating permissions to write outside of /home/ (used for spotify theme)

but i think many of users wouldnt like if it will be un-alternatively writing to /usr/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants