Blame SOURCES/0001-data-set-shell-classic-mode-via-env-variable-instead.patch

3614ae
From dc3162d24b372705cea7697624bfd04cee376997 Mon Sep 17 00:00:00 2001
3614ae
From: Ray Strode <rstrode@redhat.com>
3614ae
Date: Tue, 7 Jan 2014 13:41:28 -0500
3614ae
Subject: [PATCH] data: set shell classic mode via env variable instead of
3614ae
 command line
3614ae
3614ae
Currently, we start gnome-shell in classic mode by passing
3614ae
--mode=classic to the gnome-shell command line. This --mode=classic
3614ae
gets stripped away when the session is saved, which breaks classic
3614ae
mode on subsequent login attempts.
3614ae
3614ae
This commit changes the session file to set the
3614ae
GNOME_SHELL_SESSION_MODE environment variable instead.
3614ae
---
3614ae
 data/gnome-classic.desktop.in          | 2 +-
3614ae
 data/gnome-shell-classic.desktop.in.in | 2 +-
3614ae
 2 files changed, 2 insertions(+), 2 deletions(-)
3614ae
3614ae
diff --git a/data/gnome-classic.desktop.in b/data/gnome-classic.desktop.in
3614ae
index b3ab3af..27ae219 100644
3614ae
--- a/data/gnome-classic.desktop.in
3614ae
+++ b/data/gnome-classic.desktop.in
3614ae
@@ -1,7 +1,7 @@
3614ae
 [Desktop Entry]
3614ae
 _Name=GNOME Classic
3614ae
 _Comment=This session logs you into GNOME Classic
3614ae
-Exec=gnome-session --session gnome-classic
3614ae
+Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session --session gnome-classic
3614ae
 TryExec=gnome-session
3614ae
 Icon=
3614ae
 Type=Application
3614ae
diff --git a/data/gnome-shell-classic.desktop.in.in b/data/gnome-shell-classic.desktop.in.in
3614ae
index 6de19fe..76fdf21 100644
3614ae
--- a/data/gnome-shell-classic.desktop.in.in
3614ae
+++ b/data/gnome-shell-classic.desktop.in.in
3614ae
@@ -1,17 +1,17 @@
3614ae
 [Desktop Entry]
3614ae
 Type=Application
3614ae
 _Name=GNOME Shell Classic
3614ae
 _Comment=Window management and application launching
3614ae
-Exec=@bindir@/gnome-shell --mode=classic
3614ae
+Exec=@bindir@/gnome-shell
3614ae
 TryExec=@bindir@/gnome-shell
3614ae
 X-GNOME-Bugzilla-Bugzilla=GNOME
3614ae
 X-GNOME-Bugzilla-Product=gnome-shell
3614ae
 X-GNOME-Bugzilla-Component=general
3614ae
 X-GNOME-Bugzilla-Version=@VERSION@
3614ae
 Categories=GNOME;GTK;Core;
3614ae
 OnlyShowIn=GNOME;
3614ae
 NoDisplay=true
3614ae
 X-GNOME-Autostart-Phase=WindowManager
3614ae
 X-GNOME-Provides=panel;windowmanager;
3614ae
 X-GNOME-Autostart-Notify=true
3614ae
 X-GNOME-AutoRestart=false
3614ae
-- 
3614ae
1.8.3.1
3614ae