Skip to content

Commit

Permalink
Update GTK icon theme after installing KDE
Browse files Browse the repository at this point in the history
Otherwise GTK will be confused about older cache and icons won't work in
GTK-based widgets.

Related to QubesOS/qubes-issues#2968
  • Loading branch information
marmarek committed Jul 15, 2023
1 parent 1042a82 commit e44680b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kde-settings-qubes.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ BuildRequires: make

Requires: qubes-desktop-linux-common
Requires: qubes-artwork
Requires: kde-gtk-config
Requires: kde-filesystem
Requires: kde-runtime
Requires: kde-runtime-flags
Expand Down Expand Up @@ -125,5 +126,22 @@ if [ -r "$backupfile" ]; then
mv -f "$backupfile" "$configfile"
fi

touch --no-create %{_kde4_iconsdir}/hicolor ||:
touch --no-create %{_kde4_iconsdir}/breeze ||:

%posttrans
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/hicolor ||:
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/breeze ||:
update-desktop-database -q ||:

%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_kde4_iconsdir}/hicolor ||:
touch --no-create %{_kde4_iconsdir}/breeze ||:
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/hicolor ||:
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/breeze ||:
update-desktop-database -q ||:
fi

%changelog
@CHANGELOG@

0 comments on commit e44680b

Please sign in to comment.