Author Topic: How to downgrade GTK 3.20 to restore themes broken by the upgrade  (Read 4464 times)

0 Members and 1 Guest are viewing this topic.

Offline binki

  • Neuling
  • *
  • Posts: 24
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: nvidia geforce 7300 gt
  • GPU driver: non-free
  • Kernel: 3.16xx x86_64
  • Skill: Novice
Dunno if anybody would be interested, but I did a quick dirty hax to restore my system to its previous (working) state.
Mind the fact that this can be used if you want to revert the recent 'pacman -Syu' (I know that you can use snapshots, but am toŠ¾ lazy for this :D).
I did the following:
  • Get the list of packages that was upgraded the last (or whichever) time you used 'pacman -Syu' from '/var/log/pacman.log - the log is pretty straightforward.
  • modify the list into  a more usefull one (using sed, awk or whatever) and save it to a file:
    Quote
    fontconfig-2.11.94-1
    gdk-pixbuf2-2.32.3-1
    glib2-2.46.2-4
    ...
    Note the versions are the old versions you want to downgrade to.
  • Use this hastily written script that uses your local package cache to try and downgrade each package.
Code: [Select]
#!/bin/bash

extension='-x86_64.pkg.tar.xz'
any_arch_extension='-any.pkg.tar.xz'
cache_path="/var/cache/pacman/pkg/"

if [ -r "$1" ]; then
echo "input file is '$1'"
package_list="$1"
else
echo "package list file '$1' is not readable or invalid"
fi

while read -r line; do
pacman -U --noconfirm --nodeps "${cache_path}${line}${extension}" 2>&1
rc=$?
if [ "$rc" != "0" ]; then
pacman -U --noconfirm --nodeps "${cache_path}${line}${any_arch_extension}" 2>&1
fi
done < "$package_list"

And of course - use this at your own risk :D.
« Last Edit: 04. May 2016, 22:16:54 by binki »

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
I added some warning text to the top of the OP. Really the correct solution is just to switch themes until your "chosen" one catches up.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline conky57

  • Held Mitglied
  • *****
  • Posts: 708
  • Branch: testing
  • Desktop: KDE Plasma 5.8.4 (16.10 Fringilla) w/OpenRC
  • GPU Card: M92 Ati Mobility Radeon HD 4500 Series
  • GPU driver: free
  • Kernel: 3.18.32-1-MANJARO - x86_64
  • Skill: Novice
I don't have any gtk3 on LXDE or LXQt. :P
I have removed Gtk3 from my KDE...don't need it for anything I have to do.   :P :P


Best regards.
Be kind to everyone, because everyone is fighting some sort of battle.

LinuxCounter registered user  #278931

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
i used to be gtk3-free, too.
but then, firefox 46 came along and firefox-gtk2 was discontinued. since then, i am forced to use gtk3 :-(
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline conky57

  • Held Mitglied
  • *****
  • Posts: 708
  • Branch: testing
  • Desktop: KDE Plasma 5.8.4 (16.10 Fringilla) w/OpenRC
  • GPU Card: M92 Ati Mobility Radeon HD 4500 Series
  • GPU driver: free
  • Kernel: 3.18.32-1-MANJARO - x86_64
  • Skill: Novice
i used to be gtk3-free, too.
but then, firefox 46 came along and firefox-gtk2 was discontinued. since then, i am forced to use gtk3 :-(


I have Palemoon as an alternative browser...it is Gtk2 still. 


Best regards.
Be kind to everyone, because everyone is fighting some sort of battle.

LinuxCounter registered user  #278931

Offline ringo

  • Held Mitglied
  • *****
  • Posts: 9684
  • www.manjaro-nl.org
    • Manjaro Belgium + forum
  • Branch: unsourced
  • Desktop: xfce
  • GPU Card: Nvidia Geforce 8600 GT (acer 23inch)
  • GPU driver: Free*
  • Kernel: linux kernel
  • Skill: Novice
vivanti browsr :)
Dutch go the dutch site :)