parent
2ef9c9dc58
commit
920d054397
@ -1,25 +0,0 @@
|
||||
From 38eb9a807a79aeb365b48e7ec1323fdd885d1f58 Mon Sep 17 00:00:00 2001
|
||||
From: Aleix Pol <aleixpol@kde.org>
|
||||
Date: Fri, 4 Mar 2022 18:28:36 +0100
|
||||
Subject: [PATCH] MessageHandler: Also use journald if the process is run by
|
||||
sddm
|
||||
|
||||
This way we don't end up in the awkward position of having to fish for
|
||||
the logs somewhere in /var
|
||||
---
|
||||
src/common/MessageHandler.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/common/MessageHandler.h b/src/common/MessageHandler.h
|
||||
index 47ab0af0..db6c5387 100644
|
||||
--- a/src/common/MessageHandler.h
|
||||
+++ b/src/common/MessageHandler.h
|
||||
@@ -126,7 +126,7 @@ namespace SDDM {
|
||||
#ifdef HAVE_JOURNALD
|
||||
// don't log to journald if running interactively, this is likely
|
||||
// the case when running sddm in test mode
|
||||
- static bool isInteractive = isatty(STDIN_FILENO);
|
||||
+ static bool isInteractive = isatty(STDIN_FILENO) && qgetenv("USER") != "sddm";
|
||||
if (!isInteractive) {
|
||||
// log to journald
|
||||
journaldLogger(type, context, logMessage);
|
@ -1 +1 @@
|
||||
SHA512 (sddm-e67307e4103a8606d57a0c2fd48a378e40fcef06.tar.gz) = a520e2f7914ffa0b8fb7223486210e732edf9f0814e47aeb95b92cbb096d8adb63b45eb30b719d1fcf79feb0784707749ac8cfc7d73db251692f3625d3d324a3
|
||||
SHA512 (sddm-21e965aab8d93180966bbb19788bc42bdf2baee7.tar.gz) = b02f0a027ae1a63348c328efbace295441583fdadbcaecb7eb1882356d420dfa31870548458e961b26b8d48fd3bb52c0612dedd93c17ef63767a9685068e475f
|
||||
|
Loading…
Reference in new issue