[gnome-panel] Pass --session-name from desktop files.



commit cf5f81d5dc41a8d6d64ef321db4fc9456c75a4bb
Author: Dmitry Shachnev <mitya57 gmail com>
Date:   Wed Nov 27 18:39:46 2013 +0400

    Pass --session-name from desktop files.
    
    And not from a wrapper script. This way we have less code and are able to specify
    custom session names when needed.

 data/gnome-flashback.desktop.in.in     |    2 +-
 gnome-panel/gnome-session-flashback.in |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/gnome-flashback.desktop.in.in b/data/gnome-flashback.desktop.in.in
index 915c759..8383a92 100644
--- a/data/gnome-flashback.desktop.in.in
+++ b/data/gnome-flashback.desktop.in.in
@@ -1,7 +1,7 @@
 [Desktop Entry]
 _Name=GNOME Flashback (Metacity)
 _Comment=This session logs you into GNOME with the traditional panel
-Exec= libexecdir@/gnome-session-flashback
+Exec= libexecdir@/gnome-session-flashback --session=gnome-flashback
 TryExec= libexecdir@/gnome-session-flashback
 Icon=
 Type=Application
diff --git a/gnome-panel/gnome-session-flashback.in b/gnome-panel/gnome-session-flashback.in
index df97d7c..30051f1 100644
--- a/gnome-panel/gnome-session-flashback.in
+++ b/gnome-panel/gnome-session-flashback.in
@@ -29,10 +29,10 @@ if [ -w "$HOME/.xsession-errors-flashback" ] ; then
        echo "gnome-session-flashback ($VERSION): attempting to launch" \
             "gnome-session at $(date --iso-8601=seconds)" \
             > "$HOME/.xsession-errors-flashback"
-       gnome-session --session=gnome-flashback "$@" 2>&1 | tee -a "$HOME/.xsession-errors-flashback"
+       gnome-session "$@" 2>&1 | tee -a "$HOME/.xsession-errors-flashback"
 else
        echo "gnome-session-flashback ($VERSION): attempting to launch" \
             "gnome-session at $(date --iso-8601=seconds)" >&2
-       exec gnome-session --session=gnome-flashback "$@"
+       exec gnome-session "$@"
 fi
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]