From 4c77e69202435777deafd8c5f26518d85b5f19e7 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Sat, 24 Sep 2022 16:35:12 +0300 Subject: [PATCH] Add files via upload --- src/usr/bin/nobara-gnome-layouts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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