I'm using Raspbian GNU/Linux 11 (bullseye) with the LXDE desktop.
I'd like to create an XDG desktop file that (a) places a "Logout" icon on the user's desktop, and (b) immediately logs out the currently logged in user, without prompting for confirmation, when the user clicks on the desktop icon.
What command line should I use for the Exec
property in this desktop file:
${HOME}/Desktop/logout.desktop
[Desktop Entry]
Comment[en_US]=Immediately logs out of the LXDE Desktop
Comment=Immediately logs out of the LXDE Desktop
Exec=????
GenericName[en_US]=Logoff
GenericName=Logoff
Icon=system-log-out
MimeType=
Name[en_US]=Logout
Name=Logout
Path=????
StartupNotify=false
Terminal=false
Type=Application
Also, what file permissions should this desktop file have? Does the desktop file require execute permissions (0755), or should its file permissions be those of an ordinary file (0644)?