-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use startup command from /usr/share/xsession if DISPLAY_SESSION is set #2522
use startup command from /usr/share/xsession if DISPLAY_SESSION is set #2522
Conversation
be83119
to
46b5a40
Compare
The intention of this (if I'm reading it right) is to give a system manager the chance to force user of a particular desktop. Is that right? |
kind of right. if you look for example what gnome defines:
you see that the launch command also contains parameters and in that case environment variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion:-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor comments
sesman/startwm.sh
Outdated
STARTUP=${STARTUP#Exec=*} | ||
XDG_CURRENT_DESKTOP=$(grep ^DesktopNames= "/usr/share/xsessions/$1.desktop") | ||
XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP#DesktopNames=*} | ||
echo "env XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP $STARTUP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest echo "env XDG_CURRENT_DESKTOP=\"$XDG_CURRENT_DESKTOP \" $STARTUP"
, to add "" to the XDG_CURRENT_DESKTOP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
LGTM. Do you want to squash it into a single commit? Then I'll merge it. |
cf108ab
to
bbf3261
Compare
gnome shell has a way to start different desktop profiles, but all use the same gnome-session binary. currently implemented only for debian based distributions
bbf3261
to
093baad
Compare
improve "#2522 use startup command from /usr/share/xsession ..."
gnome shell has a way to start different desktop profiles, but all use the same gnome-session binary.
also XDG somehow expects that the DESKTOP_SESSION environment variable is set. This value is derived from the .desktop file name in /usr/share/xsessions
There is also a XDG_CURRENT_DESKTOP that comes from that file
on debian/ubuntu setting STARTUP should work, not sure about other distros.