New Feature Request 4 Logout

Write suggestions and new ideas in here
More ideas here http://community.linuxmint.com/idea/welcome
Forum rules
  • Only post ideas here that are specifically about the Linux Mint distribution or its websites.
  • So that developers and users from any distribution can discuss ideas in one place, post ideas about improving software to the collaboration website for that software instead.
Post Reply
gh4wi
Level 1
Level 1
Posts: 12
Joined: Tue Apr 03, 2018 2:35 pm

New Feature Request 4 Logout

Post by gh4wi »

Linux Mint has a Menu for Startup Programs and Scripts.
Please add a new feature to do the same for tasks to be run at Logout, prior to shutdown or reboot.
That way one can automatically run a clean up tool (such as Bleachbit) prior to shutdown or reboot.
Linux Kubuntu has this feature and I find it really useful.
Thanks.
rene
Level 16
Level 16
Posts: 6693
Joined: Sun Mar 27, 2016 6:58 pm

Re: New Feature Request 4 Logout

Post by rene »

I'd agree that would be sensible functionality.

For anyone hitting on this tread: we can currently do this by hanging things off of the display manager. In the Mint 18+ case with LightDM you add to /etc/lightdm/lightdm.conf a line e.g.

Code: Select all

session-cleanup-script=/etc/lightdm/session-cleanup.sh
and create an executable script /etc/lightdm/session-cleanup.sh consisting of for example

Code: Select all

#!/bin/sh 
[ -x "$HOME/.lightdm_logout" ] && exec /usr/bin/sudo -u "$USER" "$HOME/.lightdm_logout"
/etc/lightdm/session-cleanup.sh itself is run as root by LightDM and relays, if it exists, to an also executable script ~/.lightdm_logout run as the user who just logged out.

Looked at this due to wondering if it wasn't already possible even if not nicely configurable, but I'd agree this functionality makes for a sensible counterpart to Application Startup configuration within Cinnamon itself.
Post Reply

Return to “Suggestions & New Ideas”