Check for a graphical session

Authored by fvogt on Aug 3 2017, 7:50 AM.

Description

Check for a graphical session

Summary:
Avoid running if it detects a text session. This can be overridden by adding
"force_run" as argument.

Test Plan:
Put pam_kwallet5.so as optional in a global common-session pam file
that is included by all other services. It is not invoked when logging in from
a tty with getty, sudo or su and still works when using SDDM. When adding
force_run it runs in all cases.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D7125

Details

Committed
fvogtAug 18 2017, 6:54 AM
Differential Revision
D7125: Check for a graphical session
Parents
R107:a33ec22b96e8: Several cleanups
Branches
Unknown
Tags
Unknown