--- /install.sh --- /install.sh @@ -4,23 +4,13 @@ ROOT_UID=0 # Destination directory -if [ "$UID" -eq "$ROOT_UID" ]; then - AURORAE_DIR="/usr/share/aurorae/themes" - SCHEMES_DIR="/usr/share/color-schemes" - PLASMA_DIR="/usr/share/plasma/desktoptheme" - LAYOUT_DIR="/usr/share/plasma/layout-templates" - LOOKFEEL_DIR="/usr/share/plasma/look-and-feel" - KVANTUM_DIR="/usr/share/Kvantum" - WALLPAPER_DIR="/usr/share/wallpapers" -else - AURORAE_DIR="$HOME/.local/share/aurorae/themes" - SCHEMES_DIR="$HOME/.local/share/color-schemes" - PLASMA_DIR="$HOME/.local/share/plasma/desktoptheme" - LAYOUT_DIR="$HOME/.local/share/plasma/layout-templates" - LOOKFEEL_DIR="$HOME/.local/share/plasma/look-and-feel" - KVANTUM_DIR="$HOME/.config/Kvantum" - WALLPAPER_DIR="$HOME/.local/share/wallpapers" -fi +AURORAE_DIR="${PKGDIR}/usr/share/aurorae/themes" +SCHEMES_DIR="${PKGDIR}/usr/share/color-schemes" +PLASMA_DIR="${PKGDIR}/usr/share/plasma/desktoptheme" +LAYOUT_DIR="${PKGDIR}/usr/share/plasma/layout-templates" +LOOKFEEL_DIR="${PKGDIR}/usr/share/plasma/look-and-feel" +KVANTUM_DIR="${PKGDIR}/usr/share/Kvantum" +WALLPAPER_DIR="${PKGDIR}/usr/share/wallpapers" THEME_NAME=ChromeOS