Skip to content
Commit 003221b8 authored by Nick Rosbrook's avatar Nick Rosbrook
Browse files

DistUpgrade: do not show lock screen error if XDG_SESSION_TYPE is tty

The lock screen inhibit code is expected to fail on e.g. server because
the DBus service will not exist. The existing check for empty
XDG_SESSION_TYPE is not sufficient, because this variable is set to
'tty' on server.

Fix the condition so that the error message is not shown if
XDG_SESSION_TYPE is empty, or is set to 'tty'.

LP: #1973785
parent 318a9768
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment