diff --git a/src/usr/bin/nobara-gnome-layouts b/src/usr/bin/nobara-gnome-layouts index 6d29e75..0ae4ce1 100644 --- a/src/usr/bin/nobara-gnome-layouts +++ b/src/usr/bin/nobara-gnome-layouts @@ -1,2 +1,6 @@ #! /bin/bash -python3 /etc/nobara/scripts/nobara-layouts/nobara-layouts.py +if [[ $XDG_SESSION_DESKTOP == gnome ]]; then + python3 /etc/nobara/scripts/nobara-layouts/nobara-layouts.py +else + zenity --error --text="current session isn't gnome" +fi