New Feature Request 4 Logout

Suggestions and feedback for Linux Mint and the forums
Forum rules
Do not post support questions here. Before you post read: Where to post ideas & feature requests
Post Reply
gh4wi

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 20
Level 20
Posts: 12240
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 & Feedback”