[Solved] lightdm session-cleanup-script isn't executed on logout via XRDP

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
it-place
Level 3
Level 3
Posts: 188
Joined: Thu Jul 05, 2018 4:42 am

[Solved] lightdm session-cleanup-script isn't executed on logout via XRDP

Post by it-place »

Hi,
in Linux Mint 21.1 Cinnamon I've created a file /etc/lightdm/lightdm.conf.d/session-cleanup.conf to run a cleanup-script on logout:

Code: Select all

[Seat:*]
session-cleanup-script=/usr/local/sbin/my_script
The script is running fine if I log out from my desktop. But I'm wondering that the script isn't executed if I'm logged in via a XRDP session and logging out. Is there a way to run a script on logging out from XRDP? What is the difference between a local and a remote login relating to lightdm? :?:

Regards - Olli
Last edited by LockBot on Tue Jul 25, 2023 10:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
it-place
Level 3
Level 3
Posts: 188
Joined: Thu Jul 05, 2018 4:42 am

Re: lightdm session-cleanup-script isn't executed on logout via XRDP

Post by it-place »

I found the solution here.
Long story short: The cleanup-script has to be executed by using the /etc/xrdp/startwm.sh in XRDP config... :)
Locked

Return to “Software & Applications”