Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
xrdp.2184
xrdp-bsc965647-allow-admin-choose-desktop.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xrdp-bsc965647-allow-admin-choose-desktop.patch of Package xrdp.2184
From c67edd5b749392e72e9129af04c16d441cf21dde Mon Sep 17 00:00:00 2001 From: Felix Zhang <fezhang@suse.com> Date: Wed, 2 Mar 2016 16:18:06 +0800 Subject: [PATCH] bsc#965647 allow admin choose desktop --- sesman/startwm.sh | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/sesman/startwm.sh b/sesman/startwm.sh index 02fc795..fb517e7 100755 --- a/sesman/startwm.sh +++ b/sesman/startwm.sh @@ -1,24 +1,30 @@ #!/bin/sh -# change the order in line below to run to run whatever window manager you -# want, default to kde - -SESSIONS="gnome-session blackbox fluxbox startxfce4 startkde xterm" #start the window manager wm_start() { - for WindowManager in $SESSIONS - do - which $WindowManager - if test $? -eq 0 - then - echo "Starting $WindowManager" - $WindowManager - return 0 - fi - done - return 0 + #Customize your preferred session mode here + SESSION="sle" + + case $SESSION in + sle) + if [ -r /usr/bin/gnome-session ]; then + export GNOME_SHELL_SESSION_MODE=sle-classic + /usr/bin/gnome-session --session sle-classic + fi + ;; + gnome) + if [ -r /usr/bin/gnome-session ]; then + /usr/bin/gnome-session + fi + ;; + icewm) + if [ -r /usr/bin/icewm-session ]; then + /usr/bin/icewm-session + fi + ;; + esac } #Execution sequence for interactive login shell -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor