Script that execute at logout

Hi,

In Ubuntu Budgie 24.04
How can i run a script after the user logout (from grafical interface). There are several ways of loging out, i’m looking for a comun solution so whatever choice choose the user, the script is executed?

(something similar to /etc/gdm/PostSession/Default in GDM sessions)

Thanks

1 Like

Thank you, it works perfecly