Add a script to restart fixes during the package upgrade #2
3
PKGBUILD
3
PKGBUILD
|
@ -1,6 +1,6 @@
|
|||
# Maintainer: TROM <contact@tromsite.com>
|
||||
pkgname=tromjaro-fixes
|
||||
pkgver=1.1.1
|
||||
pkgver=1.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="Various fixes for TROMjaro OS"
|
||||
arch=(any)
|
||||
|
@ -12,6 +12,7 @@ depends=('xfce4-appfinder'
|
|||
provides=('tromjaro-fixes')
|
||||
backup=()
|
||||
options=(!strip)
|
||||
install=fixes-package.install
|
||||
|
||||
prepare() {
|
||||
cp -R ../bin ../flatpak-overrides ../alpm-hooks .
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
pidof -sq -o %PPID -x "$(basename "$0")" && exit
|
||||
while :; do
|
||||
rm -r ~/.themes/* 2> /dev/null
|
||||
rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck
|
||||
|
|
|
@ -20,6 +20,7 @@ sync_icon_theme() {
|
|||
sed -i "s/^icon_theme=.*$/icon_theme=$icon_theme/" "$HOME"/.config/qt6ct/qt6ct.conf
|
||||
}
|
||||
|
||||
pidof -sq -o %PPID -x "$(basename "$0")" && exit
|
||||
while :; do
|
||||
# Get the current system theme
|
||||
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)
|
||||
|
|
6
fixes-package.install
Normal file
6
fixes-package.install
Normal file
|
@ -0,0 +1,6 @@
|
|||
post_upgrade() {
|
||||
killall -r 'fix-(flatpaks-theming|theming|tweaked-desktop-files)'
|
||||
sudo -u "$SUDO_USER" setsid -f fix-tweaked-desktop-files
|
||||
sudo -u "$SUDO_USER" setsid -f fix-theming
|
||||
sudo -u "$SUDO_USER" setsid -f fix-flatpaks-theming
|
||||
}
|
Loading…
Reference in New Issue
Block a user