Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
ba0e1895
Commit
ba0e1895
authored
Apr 27, 2021
by
Vlad Zahorodnii
Browse files
Add a debug message that gets printed if TakeDevice fails
This can be useful while debugging why the TakeDevice request fails.
parent
2aae299e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/session_consolekit.cpp
View file @
ba0e1895
...
...
@@ -175,6 +175,8 @@ int ConsoleKitSession::openRestricted(const QString &fileName)
const
QDBusMessage
reply
=
QDBusConnection
::
systemBus
().
call
(
message
);
if
(
reply
.
type
()
==
QDBusMessage
::
ErrorMessage
)
{
qCDebug
(
KWIN_CORE
,
"Failed to open %s device (%s)"
,
qPrintable
(
fileName
),
qPrintable
(
reply
.
errorMessage
()));
return
-
1
;
}
...
...
src/session_logind.cpp
View file @
ba0e1895
...
...
@@ -181,6 +181,8 @@ int LogindSession::openRestricted(const QString &fileName)
const
QDBusMessage
reply
=
QDBusConnection
::
systemBus
().
call
(
message
);
if
(
reply
.
type
()
==
QDBusMessage
::
ErrorMessage
)
{
qCDebug
(
KWIN_CORE
,
"Failed to open %s device (%s)"
,
qPrintable
(
fileName
),
qPrintable
(
reply
.
errorMessage
()));
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment