diff options
| author | Nippy <nippy@rp1.hu> | 2026-06-22 11:15:06 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-06-22 11:15:06 +0200 |
| commit | 69e54a72c47189eaa07e27c020ff23c9caf06379 (patch) | |
| tree | 9942912ec88ec4c471aa9a9644f4aea7ac02ba0b /raveos-plasma-theme/raveos-plasma-theme.install | |
| parent | 10839298610a8170eac3374617078a6025017b08 (diff) | |
| download | RaveOS-PKGBUILD-69e54a72c47189eaa07e27c020ff23c9caf06379.tar.gz RaveOS-PKGBUILD-69e54a72c47189eaa07e27c020ff23c9caf06379.zip | |
gnome cosmic plasma sddm update
Diffstat (limited to 'raveos-plasma-theme/raveos-plasma-theme.install')
| -rw-r--r-- | raveos-plasma-theme/raveos-plasma-theme.install | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/raveos-plasma-theme/raveos-plasma-theme.install b/raveos-plasma-theme/raveos-plasma-theme.install index bdbf8eb..9cf2f8d 100644 --- a/raveos-plasma-theme/raveos-plasma-theme.install +++ b/raveos-plasma-theme/raveos-plasma-theme.install @@ -1,11 +1,30 @@ +_sddm_src="/usr/share/raveos/plasma-theme/theme-data/sddm/sddm.conf" +_sddm_dst="/etc/sddm.conf.d/raveos-theme.conf" + +pre_install() { + rm -f "$_sddm_dst" +} + +pre_upgrade() { + rm -f "$_sddm_dst" +} + post_install() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true - fi + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" + if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then + /usr/lib/raveos-plasma-theme/auto-apply.sh || true + fi } post_upgrade() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true - fi + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" + if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then + /usr/lib/raveos-plasma-theme/auto-apply.sh || true + fi +} + +post_remove() { + rm -f "$_sddm_dst" } |