darkman/wallpaper: error if lsb_release is not installed

This commit is contained in:
Aminda Suomalainen 2024-07-20 07:20:06 +03:00
parent 42efd8ce0b
commit f64f5727d0
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,12 @@
#!/usr/bin/env bash
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
notify-send $ERRORMESSAGE
exit 1
fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)

View File

@ -1,5 +1,12 @@
#!/usr/bin/env bash
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
notify-send $ERRORMESSAGE
exit 1
fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)