feat: validate desktop environment
Check that the desktop environment currently being used is GNOME.
This commit is contained in:
parent
1b8acd0116
commit
469398a950
|
@ -3,6 +3,10 @@ gversion="0"
|
||||||
pictureuri="picture-uri"
|
pictureuri="picture-uri"
|
||||||
|
|
||||||
validate_config() {
|
validate_config() {
|
||||||
|
if [ "$XDG_CURRENT_DESKTOP" != "GNOME" ]; then
|
||||||
|
quit "Error: GNOME is not detected. Please install GNOME."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$WALLPAPER_DIR" ]; then
|
if [ -z "$WALLPAPER_DIR" ]; then
|
||||||
quit "Error: The wallpaper directory environment variable (WALLPAPER_DIR) has not been set."
|
quit "Error: The wallpaper directory environment variable (WALLPAPER_DIR) has not been set."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue