The Wiki article you pointed to is not a currently implemented spec - it's a suggested guide for developers of features that should be implemented and how they should be implemented.
This is the design specification for Notify OSD. If you are a software developer looking for advice on making your software compatible with Notify OSD, see NotificationDevelopmentGuidelines.
This specification contains some issues not yet resolved. Your feedback is welcome at NotifyOSD/Comments.
This will likely be implemented in the future, for now it's rough going when the queue piles up.
Work in progress
This can be accomplished by using:
- a custom X session which starts a basic window manager and runs the script
- a custom configuration for LightDM which will autologin your user and use the above session
- a custom service for LightDM which will use the above configuration
- appropriate kernel parameters to disable the normal LightDM service and start the custom one
- GRUB configuration to automatically create entries with the above parameters, with password protection
For this example, I will show how to setup a kiosk mode using Google Chrome.
The script
#! /bin/sh
metacity &
while true
do
google-chrome --start-maximized
if zenity --question --text='Do you want to logout?' --title='Logout'
then
exit
fi
done
Keep it at, say /usr/local/bin/chrome-kiosk.sh
, make it executable. Note that I use metacity
for a simple window manager that provides me with a workable setup without further configuration.
The X session
[Desktop Entry]
Name=Chrome
Comment=This session logs runs a Google Chrome kiosk
Exec=/usr/local/bin/chrome-kiosk.sh
Icon=google-chrome
Type=Application
X-LightDM-DesktopName=Chrome
Save it at /usr/share/xsessions/chrome.desktop
. If you use a different script, change at least the Exec
line accordingly.
The LightDM configuration
[Seat:*]
autologin-guest=false
autologin-user=username
autologin-user-timeout=0
autologin-session=chrome
Save it as /etc/lightdm/autologin-lightdm.conf
. Replace username
with your desired user name.
The LightDM service
systemctl cat lightdm.service |
sed '/ExecStart/s/$/ --config=/etc/lightdm/autologin-lightdm.conf' |
sudo tee /etc/systemd/system/autologin-lightdm.service
This creates a custom copy of the default lightdm.service
named autologin-lightdm.service
at /etc/systemd/system
, with the ExecStart
line changed to:
ExecStart=/usr/sbin/lightdm --config /etc/lightdm/autologin-lightdm.conf
The kernel paramaters
To test this out, at the GRUB menu, press e to edit the Ubuntu entry. Find the linux
line, and append:
systemd.mask=display-manager.service systemd.wants=autologin-lightdm.service
(You can omit the .service
extensions.)
Press CtrlX. You should be logged into the user and have a maximized Google Chrome window.
GRUB configuration
TBD.
Best Answer
Go to either:
System settings --> System (area) --> login screen.
System --> administration --> Login screen.
and in it you simply click to deactivate a delay on x seconds as the screenshot shows.