Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494030 - x11-misc/lightdm-1.8.5 - regression with session-cleanup script triggering without actual logins
Summary: x11-misc/lightdm-1.8.5 - regression with session-cleanup script triggering wi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 12:42 UTC by Mike Hiretsky
Modified: 2016-11-23 17:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Run session-cleanup-script only on logout (lightdm-1.8.5-cleanup-script.patch,467 bytes, patch)
2013-12-13 07:18 UTC, Mike Hiretsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hiretsky 2013-12-12 12:42:42 UTC
In stable lightdm-1.9.5 session-cleanup scripts trigger before a session has started. Simply clicking between users at the login menu triggers the session cleanup script.
Comment 1 Mike Hiretsky 2013-12-12 13:09:13 UTC
I make a mastake with version: 1.8.5.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2013-12-12 15:49:28 UTC
I don't understand the problem
Comment 3 Mike Hiretsky 2013-12-13 04:56:50 UTC
By manual of lightdm:
session-cleanup-script: Script to run when quitting a user session (runs as root).

But this script runs even when user switch. At example I have script for sync user profile to server, and this script should be run on user logout. But this script runs by lightdm clicking between users at the login menu. This problem is absent in 1.4.3 and 1.6.2 lightdm versions.
Comment 4 Mike Hiretsky 2013-12-13 07:18:27 UTC
Created attachment 365216 [details, diff]
Run session-cleanup-script only on logout

Launch session-cleanup-script only authentificated users.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-12-13 13:14:42 UTC
You have to submit your patch to the upstream lightdm before we can accept it in Gentoo
Comment 6 Mike Hiretsky 2013-12-16 06:38:34 UTC
Also I have observed the cleanup-script launch during unlocking session by lightdm: I logged into session by lightdm, locked the session by command "dm-tool lock", unlocked the session by lightdm and I observed the launch of cleanup-script for this user.
Comment 7 Mike Hiretsky 2013-12-16 06:41:23 UTC
Posted earlier patch doesn't resolve this problem.