Remove session chooser from unity-greeter

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












Is there a clean way to either hide the session chooser "Select desktop environment" widget from the unity-greeter screen, or force a particular user to use a particular desktop environment (even if others are installed)? I'm building a kiosk on Ubuntu 16.04, and need to prevent the kiosk user from having access to anything other than the stripped down Openbox environment which autolaunches a particular application. On the other hand, I need the admin user to have full access to the standard Ubuntu Unity environment.



The only option I've seen is a hackish editing of the *.desktop session files to point the Exec and TryExec options to external scripts that check who the user is logged in as and exec a specific desktop session for the user regardless of which one they select on the unity-greeter screen.



I'm kind of surprised that this isn't an easily configurable option.



UPDATE:



I built a custom version of unity-greeter from source. Commenting out these two lines (see diff output below) causes the badge to disappear. Not the ideal solution, as this disables the session chooser for all users, but since this functionality is not actually necessary post-install, I'm o.k. with it (especially since I have no facility with "vala"). The ideal solution would be to duplicate the "hidden user" functionality with a "hidden session" equivalent, but a couple of hours of trying to implement this in a naive fashion suggest that's beyond my coding capabilities.



849c849 
< /* e.show_options.connect (prompt_box_show_options_cb); */
---
> e.show_options.connect (prompt_box_show_options_cb);
934c934
< /* if (!should_show_session_badge ()) */
---
> if (!should_show_session_badge ())


Since this is disabled, I needed to edit the AccountServices file for the user account needing a full desktop session /var/lib/AccountServices/users/username and set "XSession" to "ubuntu".







share|improve this question






















  • It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
    – WinEunuuchs2Unix
    May 11 at 1:58










  • It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
    – Thomas Van Ness Leavitt
    May 15 at 18:43











  • Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
    – WinEunuuchs2Unix
    May 15 at 19:55















up vote
1
down vote

favorite












Is there a clean way to either hide the session chooser "Select desktop environment" widget from the unity-greeter screen, or force a particular user to use a particular desktop environment (even if others are installed)? I'm building a kiosk on Ubuntu 16.04, and need to prevent the kiosk user from having access to anything other than the stripped down Openbox environment which autolaunches a particular application. On the other hand, I need the admin user to have full access to the standard Ubuntu Unity environment.



The only option I've seen is a hackish editing of the *.desktop session files to point the Exec and TryExec options to external scripts that check who the user is logged in as and exec a specific desktop session for the user regardless of which one they select on the unity-greeter screen.



I'm kind of surprised that this isn't an easily configurable option.



UPDATE:



I built a custom version of unity-greeter from source. Commenting out these two lines (see diff output below) causes the badge to disappear. Not the ideal solution, as this disables the session chooser for all users, but since this functionality is not actually necessary post-install, I'm o.k. with it (especially since I have no facility with "vala"). The ideal solution would be to duplicate the "hidden user" functionality with a "hidden session" equivalent, but a couple of hours of trying to implement this in a naive fashion suggest that's beyond my coding capabilities.



849c849 
< /* e.show_options.connect (prompt_box_show_options_cb); */
---
> e.show_options.connect (prompt_box_show_options_cb);
934c934
< /* if (!should_show_session_badge ()) */
---
> if (!should_show_session_badge ())


Since this is disabled, I needed to edit the AccountServices file for the user account needing a full desktop session /var/lib/AccountServices/users/username and set "XSession" to "ubuntu".







share|improve this question






















  • It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
    – WinEunuuchs2Unix
    May 11 at 1:58










  • It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
    – Thomas Van Ness Leavitt
    May 15 at 18:43











  • Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
    – WinEunuuchs2Unix
    May 15 at 19:55













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Is there a clean way to either hide the session chooser "Select desktop environment" widget from the unity-greeter screen, or force a particular user to use a particular desktop environment (even if others are installed)? I'm building a kiosk on Ubuntu 16.04, and need to prevent the kiosk user from having access to anything other than the stripped down Openbox environment which autolaunches a particular application. On the other hand, I need the admin user to have full access to the standard Ubuntu Unity environment.



The only option I've seen is a hackish editing of the *.desktop session files to point the Exec and TryExec options to external scripts that check who the user is logged in as and exec a specific desktop session for the user regardless of which one they select on the unity-greeter screen.



I'm kind of surprised that this isn't an easily configurable option.



UPDATE:



I built a custom version of unity-greeter from source. Commenting out these two lines (see diff output below) causes the badge to disappear. Not the ideal solution, as this disables the session chooser for all users, but since this functionality is not actually necessary post-install, I'm o.k. with it (especially since I have no facility with "vala"). The ideal solution would be to duplicate the "hidden user" functionality with a "hidden session" equivalent, but a couple of hours of trying to implement this in a naive fashion suggest that's beyond my coding capabilities.



849c849 
< /* e.show_options.connect (prompt_box_show_options_cb); */
---
> e.show_options.connect (prompt_box_show_options_cb);
934c934
< /* if (!should_show_session_badge ()) */
---
> if (!should_show_session_badge ())


Since this is disabled, I needed to edit the AccountServices file for the user account needing a full desktop session /var/lib/AccountServices/users/username and set "XSession" to "ubuntu".







share|improve this question














Is there a clean way to either hide the session chooser "Select desktop environment" widget from the unity-greeter screen, or force a particular user to use a particular desktop environment (even if others are installed)? I'm building a kiosk on Ubuntu 16.04, and need to prevent the kiosk user from having access to anything other than the stripped down Openbox environment which autolaunches a particular application. On the other hand, I need the admin user to have full access to the standard Ubuntu Unity environment.



The only option I've seen is a hackish editing of the *.desktop session files to point the Exec and TryExec options to external scripts that check who the user is logged in as and exec a specific desktop session for the user regardless of which one they select on the unity-greeter screen.



I'm kind of surprised that this isn't an easily configurable option.



UPDATE:



I built a custom version of unity-greeter from source. Commenting out these two lines (see diff output below) causes the badge to disappear. Not the ideal solution, as this disables the session chooser for all users, but since this functionality is not actually necessary post-install, I'm o.k. with it (especially since I have no facility with "vala"). The ideal solution would be to duplicate the "hidden user" functionality with a "hidden session" equivalent, but a couple of hours of trying to implement this in a naive fashion suggest that's beyond my coding capabilities.



849c849 
< /* e.show_options.connect (prompt_box_show_options_cb); */
---
> e.show_options.connect (prompt_box_show_options_cb);
934c934
< /* if (!should_show_session_badge ()) */
---
> if (!should_show_session_badge ())


Since this is disabled, I needed to edit the AccountServices file for the user account needing a full desktop session /var/lib/AccountServices/users/username and set "XSession" to "ubuntu".









share|improve this question













share|improve this question




share|improve this question








edited May 11 at 1:29

























asked May 8 at 18:59









Thomas Van Ness Leavitt

62




62











  • It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
    – WinEunuuchs2Unix
    May 11 at 1:58










  • It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
    – Thomas Van Ness Leavitt
    May 15 at 18:43











  • Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
    – WinEunuuchs2Unix
    May 15 at 19:55

















  • It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
    – WinEunuuchs2Unix
    May 11 at 1:58










  • It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
    – Thomas Van Ness Leavitt
    May 15 at 18:43











  • Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
    – WinEunuuchs2Unix
    May 15 at 19:55
















It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
– WinEunuuchs2Unix
May 11 at 1:58




It would be beneficial to turn off the the desktop selection drop down at login for single DE machines. Also to turn off the User Name selection for single User machines. Of course both should be able to be turned back on later using sudo powers. Hopefully your request is doable and not a new feature request.
– WinEunuuchs2Unix
May 11 at 1:58












It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
– Thomas Van Ness Leavitt
May 15 at 18:43





It's going to amount to a minor feature request; I've had one of my contractors hack into the unity-greeter source code and add a configuration option to the XML schema that lets you specify a list of users for whom the session badge is rendered invisible. ... we'll be submitting this, and possibly, an enhanced version that lets you specify exactly which desktop sessions are available to which users via the greeter. Of course, this doesn't prevent users with shell access from bypassing these limitations, but that's another issue entirely.
– Thomas Van Ness Leavitt
May 15 at 18:43













Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
– WinEunuuchs2Unix
May 15 at 19:55





Users with shell you can tell them all there entries are logged to a special history file they can't access. As for. XML Resource file I began project to extract and recompile the GDM login screen in order to set background wallpaper last night got about half way done. So yes it does sound minor.
– WinEunuuchs2Unix
May 15 at 19:55
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033708%2fremove-session-chooser-from-unity-greeter%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033708%2fremove-session-chooser-from-unity-greeter%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491