Copy any missing skel files on package install

This commit is contained in:
ferrreo 2023-06-11 21:10:45 +01:00
parent d22a608f9e
commit 5e9fa755bc
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
pika-hyprland-settings (1.0.0-99pika2) lunar; urgency=medium
* First
-- ferrreo <harderthanfire@gmail.com> Sat, 01 Oct 2022 14:50:00 +0300
pika-hyprland-settings (1.0.0-99pika1) lunar; urgency=medium pika-hyprland-settings (1.0.0-99pika1) lunar; urgency=medium
* First * First

View File

@ -7,7 +7,6 @@ Build-Depends: debhelper-compat (= 13)
Rules-Requires-Root: no Rules-Requires-Root: no
Package: pika-hyprland-settings Package: pika-hyprland-settings
Source: meta-hyprland
Architecture: amd64 Architecture: amd64
Depends: breeze, pika-theme Depends: breeze, pika-theme
Conflicts: pika-settings, pika-kde-settings Conflicts: pika-settings, pika-kde-settings

View File

@ -3,4 +3,11 @@
set -e set -e
cp -f /etc/skel/.config/examples/metadata.desktop /usr/share/plasma/desktoptheme/Orchis-dark/ cp -f /etc/skel/.config/examples/metadata.desktop /usr/share/plasma/desktoptheme/Orchis-dark/
cp -f /etc/skel/.config/examples/.profile /etc/skel/ cp -f /etc/skel/.config/examples/.profile /etc/skel/
getent passwd |
while IFS=: read username x uid gid gecos home shell
do
[[ "$username" == root || ! -d "$home" ]] && continue
tar -cf - -C /etc/skel . | sudo -Hu "$username" tar --skip-old-files -xf -
done