install-gnome-themes icon indicating copy to clipboard operation
install-gnome-themes copied to clipboard

Add support for Arch Linux

Open mubaris opened this issue 7 years ago • 9 comments

I am running on Apricity OS - Gnome 3.24

Here's the output.

Detected GTK .
This script only GTK version 3.18 up to 3.24.

mubaris avatar May 01 '17 18:05 mubaris

I would love to add support but do not normally use Arch. :/ Could anybody please contribute a fix for Arch?

tliron avatar May 01 '17 21:05 tliron

utils.sh would have to have the following for gtk-version to be correctly captured: VERSION=$(pacman -Q gtk3 | cut --delimiter=' ' --fields=2 | cut --delimiter='.' --fields=1,2)

Since the script only supports gtk3, I'm not sure why there is a check for gtk2 being installed...

I am not sure if there is a way to check gtk version without using dpkg or the package manager, anyone else know?

KrumpetPirate avatar May 02 '17 18:05 KrumpetPirate

The GTK2 is just a fallback so that something useful at least would be presented to the user.

I don't think it's possible to check it without a package manager. After all, you might have both GTK2 and GTK3 installed at the same time, so there's no one version used. GTK1 had a gtk-config tool, but it was depracated and removed.

Anyway, GTK version is not enough for Arch support -- we also need to install all the required dependencies for building and using the themes. If you can send a PR that would be great, but even if you just hack the file and get it to work and send it to me I can merge it.

tliron avatar May 02 '17 19:05 tliron

Yes you are right. I will have to look at it later when I have some time.

KrumpetPirate avatar May 02 '17 21:05 KrumpetPirate

I'm afraid I'm going to bork my install if I continue on this. Arch is so wide open as well that it makes it a little harder. Manjaro might have some pre-built packages that Antergros doesn't have and for sure Arch doesn't have. Someone better than I will have to give this a go.

KrumpetPirate avatar May 03 '17 00:05 KrumpetPirate

Same issue with ApricityOS :(

gnacho avatar May 05 '17 22:05 gnacho

I have this running on fedora by using the following command.

rpm -ql --info gtk3-devel 2>/dev/null | grep '^Version' | cut --delimiter=' ' --fields=7- | cut --delimiter='.' --fields=1,2

I might try and get this working on Manjaro and Antergros if I have time today

Findarato avatar May 11 '17 14:05 Findarato

I have removed all OS-specific code from the script as it was getting unmanageable. Instructions are now provided in the README.

If you'd like to contribute instructions for Arch, they would be much appreciated!

tliron avatar Feb 08 '18 23:02 tliron

Anybody want to contribute a install-requirements-arch file?

tliron avatar Apr 18 '18 19:04 tliron