From 35ac3d97d5d40468f8286d6ccbfbb3ee99805548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 4 May 2020 15:33:04 +0200 Subject: [PATCH] Use relative symlinks in /usr/share/desktop-base/kali-theme --- bin/update-default-backgrounds | 10 +++++----- share/desktop-base/kali-theme/grub/grub-16x9.png | 2 +- share/desktop-base/kali-theme/grub/grub-4x3.png | 2 +- share/desktop-base/kali-theme/grub/grub_background.sh | 2 +- .../kali-theme/lockscreen/gnome-background.xml | 2 +- share/desktop-base/kali-theme/login/background | 2 +- share/desktop-base/kali-theme/login/background.svg | 2 +- share/desktop-base/kali-theme/plymouth | 2 +- share/desktop-base/kali-theme/wallpaper/contents | 2 +- .../kali-theme/wallpaper/gnome-background.xml | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bin/update-default-backgrounds b/bin/update-default-backgrounds index ff18a7b0..326cda62 100755 --- a/bin/update-default-backgrounds +++ b/bin/update-default-backgrounds @@ -5,14 +5,14 @@ DESKTOP_BACKGROUND=$1 LOGIN_BACKGROUND=$2 # login/lockscreen -ln -sfv /usr/share/backgrounds/kali/$LOGIN_BACKGROUND.xml ${DESTDIR}lockscreen/gnome-background.xml -ln -sfv /usr/share/backgrounds/kali/$LOGIN_BACKGROUND-16x9.png ${DESTDIR}login/background -ln -sfv /usr/share/backgrounds/kali/$LOGIN_BACKGROUND.svg ${DESTDIR}login/background.svg +ln -sfv ../../../backgrounds/kali/$LOGIN_BACKGROUND.xml ${DESTDIR}lockscreen/gnome-background.xml +ln -sfv ../../../backgrounds/kali/$LOGIN_BACKGROUND-16x9.png ${DESTDIR}login/background +ln -sfv ../../../backgrounds/kali/$LOGIN_BACKGROUND.svg ${DESTDIR}login/background.svg # desktop background kde_wallpaper=$(echo $DESKTOP_BACKGROUND | sed -E 's/(^|-)([a-z])/\U\2/g') -ln -sfv /usr/share/backgrounds/kali/$DESKTOP_BACKGROUND.xml ${DESTDIR}wallpaper/gnome-background.xml -ln -sfv /usr/share/wallpapers/$kde_wallpaper/contents ${DESTDIR}wallpaper/contents +ln -sfv ../../../backgrounds/kali/$DESKTOP_BACKGROUND.xml ${DESTDIR}wallpaper/gnome-background.xml +ln -sfv ../../../wallpapers/$kde_wallpaper/contents ${DESTDIR}wallpaper/contents sed -i "s/defaultWallpaperTheme=.*/defaultWallpaperTheme=${kde_wallpaper}/" share/plasma/desktoptheme/kali/metadata.desktop sed -i "s|/usr/share/backgrounds/kali-16x9/[^\"]*|/usr/share/backgrounds/kali-16x9/$DESKTOP_BACKGROUND.png|" \ diff --git a/share/desktop-base/kali-theme/grub/grub-16x9.png b/share/desktop-base/kali-theme/grub/grub-16x9.png index d3453e09..5ac7d09f 120000 --- a/share/desktop-base/kali-theme/grub/grub-16x9.png +++ b/share/desktop-base/kali-theme/grub/grub-16x9.png @@ -1 +1 @@ -/boot/grub/themes/kali/grub-16x9.png \ No newline at end of file +../../../grub/themes/kali/grub-16x9.png \ No newline at end of file diff --git a/share/desktop-base/kali-theme/grub/grub-4x3.png b/share/desktop-base/kali-theme/grub/grub-4x3.png index 4bfc9f37..a98d436e 120000 --- a/share/desktop-base/kali-theme/grub/grub-4x3.png +++ b/share/desktop-base/kali-theme/grub/grub-4x3.png @@ -1 +1 @@ -/boot/grub/themes/kali/grub-4x3.png \ No newline at end of file +../../../grub/themes/kali/grub-4x3.png \ No newline at end of file diff --git a/share/desktop-base/kali-theme/grub/grub_background.sh b/share/desktop-base/kali-theme/grub/grub_background.sh index b9ed4703..427aaa87 120000 --- a/share/desktop-base/kali-theme/grub/grub_background.sh +++ b/share/desktop-base/kali-theme/grub/grub_background.sh @@ -1 +1 @@ -/boot/grub/themes/kali/grub_background.sh \ No newline at end of file +../../../grub/themes/kali/grub_background.sh \ No newline at end of file diff --git a/share/desktop-base/kali-theme/lockscreen/gnome-background.xml b/share/desktop-base/kali-theme/lockscreen/gnome-background.xml index cb514f97..f19b99b0 120000 --- a/share/desktop-base/kali-theme/lockscreen/gnome-background.xml +++ b/share/desktop-base/kali-theme/lockscreen/gnome-background.xml @@ -1 +1 @@ -/usr/share/backgrounds/kali/kali-blur.xml \ No newline at end of file +../../../backgrounds/kali/kali-blur.xml \ No newline at end of file diff --git a/share/desktop-base/kali-theme/login/background b/share/desktop-base/kali-theme/login/background index 1cdab406..f1de3ed6 120000 --- a/share/desktop-base/kali-theme/login/background +++ b/share/desktop-base/kali-theme/login/background @@ -1 +1 @@ -/usr/share/backgrounds/kali/kali-blur-16x9.png \ No newline at end of file +../../../backgrounds/kali/kali-blur-16x9.png \ No newline at end of file diff --git a/share/desktop-base/kali-theme/login/background.svg b/share/desktop-base/kali-theme/login/background.svg index fa45fd06..5d83d3dd 120000 --- a/share/desktop-base/kali-theme/login/background.svg +++ b/share/desktop-base/kali-theme/login/background.svg @@ -1 +1 @@ -/usr/share/backgrounds/kali/kali-blur.svg \ No newline at end of file +../../../backgrounds/kali/kali-blur.svg \ No newline at end of file diff --git a/share/desktop-base/kali-theme/plymouth b/share/desktop-base/kali-theme/plymouth index 5145b31f..7ddf3760 120000 --- a/share/desktop-base/kali-theme/plymouth +++ b/share/desktop-base/kali-theme/plymouth @@ -1 +1 @@ -/usr/share/plymouth/themes/kali \ No newline at end of file +../../plymouth/themes/kali \ No newline at end of file diff --git a/share/desktop-base/kali-theme/wallpaper/contents b/share/desktop-base/kali-theme/wallpaper/contents index 8d689559..422b8017 120000 --- a/share/desktop-base/kali-theme/wallpaper/contents +++ b/share/desktop-base/kali-theme/wallpaper/contents @@ -1 +1 @@ -/usr/share/wallpapers/KaliMesh/contents \ No newline at end of file +../../../wallpapers/KaliMesh/contents \ No newline at end of file diff --git a/share/desktop-base/kali-theme/wallpaper/gnome-background.xml b/share/desktop-base/kali-theme/wallpaper/gnome-background.xml index 91e28ca0..61b08d40 120000 --- a/share/desktop-base/kali-theme/wallpaper/gnome-background.xml +++ b/share/desktop-base/kali-theme/wallpaper/gnome-background.xml @@ -1 +1 @@ -/usr/share/backgrounds/kali/kali-mesh.xml \ No newline at end of file +../../../backgrounds/kali/kali-mesh.xml \ No newline at end of file