Yaru: A few questions about Yaru on Ubuntu Bionic

Created on 26 Jul 2018  路  13Comments  路  Source: ubuntu/yaru

Sorry if this is obvious or frivolous. I've installed Yaru by cloning the git repo and doing the meson build, ninja, sudo ninja install routine and everything seems fine. Yet there is no option to set Yaru as my gnome-shell theme. I do, however, have a Yaru Ubuntu session at the gdm screen, but selecting that doesn't seem to do anything. I also had this problem when I tried using the communitheme snap package. Can anyone point out what I'm doing wrong, if anything? Also, is it possible to use a dark variant of Yaru's gtk themes? And if so, how can I go about activating it?

Thanks in advance. And if this isn't the place for this type of question ... please delete :)

All 13 comments

Which --prefix did you use?
I had similar problems when using the wrong prefix
What works is --prefix=/usr

Well, I didn't change the prefix. /usr was the default as stated in the meson.build file so that's what was used. The gtk, cursor, and icon parts all work fine. But usually the gnome-shell stuff gets put in /usr/share/themes/"theme_folder" location, but it isn't listed there -- instead it's in /usr/share/gnome-shell. It does with other themes, anyway, and they all work fine for me.

I also tried using the ppa. Same problems.

Edit: Anyway to use the dark gtk theme?

Had the same issue, see #656. Installing via snap doesn't do anything and the theme didn't even show up for me in gnome-tweak-tool. I had to manually create symlinks from the snap folder in my home directory in ~/.themes to get it to work. No sessions are created and the gnome-shell theme seems messed up like it's a mix of Adwaita and Yaru. The font is huge and it looks nothing like the screenshots. The gdm3 theme is never changed also, it remains the default Ambiance once.

I was able to enable the dark theme by going into the ~/.config/gtk-3.0/settings.ini file and changing the prefer dark theme to 1. However this is odd because GNOME upstream is moving away from changing to the dark theme this way, it seems like the obsolete way of doing so. Instead there should be a Yaru-dark like there's an Adwaita-dark. This is so that gtk2.0 apps can pick up the dark theme changes and it's more consistent.

Maybe you mixed PPA snap and meson. Could you check on a fresh install? I didn't have any more issues after the yaru name change

I don't know if the issue happen on ubuntu too (it is very likely), anyway if you build yaru on archlinux using meson the gnome shell theme is installed in "/usr/share/gnome-shell", applying the above patch the gnome shell theme is installed in "/usr/share/themes/Yaru/gnome-shell" that should be the right location

the gnome shell theme is installed in "/usr/share/themes/Yaru/gnome-shell" that should be the right location

@drakkan could you point me to the documentation about this?

I am not sure if it's something distro dependent, but on Ubuntu under /usr/share/themes/Adwaita there is no gnome-shell as well, so I guess the meson installation path for Ubuntu is right

@vaskark could you paste the build log?

@clobrano please take a look at fedora gnome shell theme such as this one

http://mirror2.hs-esslingen.de/fedora/linux/releases/28/Everything/x86_64/os/Packages/g/gnome-shell-theme-selene-3.4.0-14.fc28.noarch.rpm

and please take a look to tweak tool source code:

https://gitlab.gnome.org/GNOME/gnome-tweaks/blob/master/gtweak/tweaks/tweak_group_appearance.py#L225

on ubuntu are you able to set yaru gnome shell theme using gnome-tweak-tools?

on ubuntu are you able to set yaru gnome shell theme using gnome-tweak-tools?

of course, this is what we're doing since the beginning of the project, but I wonder if we are mixing problems.
The bug name report the problem on Ubuntu Bionic, your patch refers to Arch and seems valid for Fedora as well, is that correct?
@vaskark sorry for the silly question, but you're running ubuntu when you've got the problem right?

@clobrano Yeah, I'm on ubuntu bionic. Sorry for not getting back sooner.
No, I cannot set the yaru gnome-shell theme in gnome-tweaks. This is the entire problem, not only with building from git but also the ppa and snap install methods. Its just never worked for me. Also, I do not know how to use the patch that someone kindly posted above. I'm also baffled as to why there needs to be a theme choice at the login screen. No other theme works like that.

I found a way to set the dark theme:

cd /usr/share/themes/Yaru/gtk-3.0
sudo mv gtk.css gtk.css.backup
sudo ln -s gtk-dark.css gtk.css

Looks pretty good ;)

And I did this to get the Yaru gnome-shell theme working:

sudo ln -s /usr/share/gnome-shell/theme/Yaru gnome-shell

Works ok now. Hope it helps in the mean time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mivoligo picture mivoligo  路  3Comments

snydox picture snydox  路  3Comments

eaglersdeveloper picture eaglersdeveloper  路  3Comments

chrisjbillington picture chrisjbillington  路  3Comments

Feichtmeier picture Feichtmeier  路  3Comments