summarylogtreecommitdiffstats
path: root/pantheon-session-qq
diff options
context:
space:
mode:
authorQue Quotion2018-06-05 00:20:56 +0900
committerQue Quotion2018-06-05 00:20:56 +0900
commit513e4be595d598f40dd982c420ebaa68b4b7a1cb (patch)
treee75a8e46b9d32c983106fee191dac07a67ab7ea2 /pantheon-session-qq
parentf8b45f9afb4f77456ad7b09fb4033f49b05432c0 (diff)
downloadaur-513e4be595d598f40dd982c420ebaa68b4b7a1cb.tar.gz
Slightly more efficent session script
Diffstat (limited to 'pantheon-session-qq')
-rwxr-xr-xpantheon-session-qq30
1 files changed, 15 insertions, 15 deletions
diff --git a/pantheon-session-qq b/pantheon-session-qq
index c5ad07fba7e8..d34a50dfd4ab 100755
--- a/pantheon-session-qq
+++ b/pantheon-session-qq
@@ -1,18 +1,18 @@
#!/bin/sh
export {XDG_{CURRENT,SESSION}_DESKTOP,DESKTOP_SESSION}=Pantheon
-if [ -n "$1" ]; then
- case $1 in
- lite) # Reduced resource usage with openbox in place of gala
- exec gnome-session --session pantheon-openbox
- ;;
- 3d) # Improved functionality and decor with compiz in place of gala
- exec gnome-session --session pantheon-compiz
- ;;
- *) # Other custom sessions
- exec gnome-session --session pantheon-$1
- ;;
- esac
-else
- exec gnome-session --session gnome-shell
-fi
+
+case $1 in
+ lite) # Reduced resource usage with openbox in place of gala
+ exec gnome-session --session pantheon-openbox
+ ;;
+ 3d) # Improved functionality and decor with compiz in place of gala
+ exec gnome-session --session pantheon-compiz
+ ;;
+ *) # Other custom sessions
+ exec gnome-session --session pantheon-$1
+ ;;
+ "") # Fallback to gnome-shell
+ exec gnome-session --session gnome-shell
+ ;;
+esac