···1-From 1796822e4c97062b919a596ce13db68e2c46c7e8 Mon Sep 17 00:00:00 2001
2From: Thomas Tuegel <ttuegel@mailbox.org>
3Date: Tue, 28 Jan 2020 05:00:53 -0600
4Subject: [PATCH 1/2] startkde
···6---
7 startkde/startplasma-waylandsession.cpp | 2 +-
8 startkde/startplasma-x11.cpp | 2 +-
9- startkde/startplasma.cpp | 32 ++++++++-----------------
10- 3 files changed, 12 insertions(+), 24 deletions(-)
1112diff --git a/startkde/startplasma-waylandsession.cpp b/startkde/startplasma-waylandsession.cpp
13-index 87c71c6..5fc5314 100644
14--- a/startkde/startplasma-waylandsession.cpp
15+++ b/startkde/startplasma-waylandsession.cpp
16@@ -67,7 +67,7 @@ int main(int /*argc*/, char** /*argv*/)
···23 cleanupX11();
24 out << "startplasma-waylandsession: Done.\n";
25diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
26-index 3314b62..14cbe29 100644
27--- a/startkde/startplasma-x11.cpp
28+++ b/startkde/startplasma-x11.cpp
29@@ -111,7 +111,7 @@ int main(int /*argc*/, char** /*argv*/)
···36 cleanupPlasmaEnvironment();
37 cleanupX11();
38diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
39-index e0f7004..8ac41fd 100644
40--- a/startkde/startplasma.cpp
41+++ b/startkde/startplasma.cpp
42@@ -34,7 +34,7 @@ QTextStream out(stderr);
···48 }
4950 QStringList allServices(const QLatin1String& prefix)
51-@@ -184,14 +184,6 @@ void runEnvironmentScripts()
52- }
53- }
54- sourceFiles(scripts);
55--
56-- // Make sure that the KDE prefix is first in XDG_DATA_DIRS and that it's set at all.
57-- // The spec allows XDG_DATA_DIRS to be not set, but X session startup scripts tend
58-- // to set it to a list of paths *not* including the KDE prefix if it's not /usr or
59-- // /usr/local.
60-- if (!qEnvironmentVariableIsSet("XDG_DATA_DIRS")) {
61-- qputenv("XDG_DATA_DIRS", KDE_INSTALL_FULL_DATAROOTDIR ":/usr/share:/usr/local/share");
62-- }
63- }
64-65-66-@@ -240,15 +232,15 @@ void setupX11()
67 // If the user has overwritten fonts, the cursor font may be different now
68 // so don't move this up.
69···84 }
8586 // TODO: Check if Necessary
87-@@ -265,11 +257,7 @@ bool syncDBusEnvironment()
88 {
89 int exitCode;
90 // At this point all environment variables are set, let's send it to the DBus session server to update the activation environment
···97 return exitCode == 0;
98 }
99100-@@ -285,7 +273,7 @@ void setupFontDpi()
101 //TODO port to c++?
102 const QByteArray input = "Xft.dpi: " + QByteArray::number(fontsCfg.readEntry("forceFontDPI", 0));
103 QProcess p;
···106 p.setProcessChannelMode(QProcess::ForwardedChannels);
107 p.write(input);
108 p.closeWriteChannel();
109-@@ -307,7 +295,7 @@ QProcess* setupKSplash()
110 KConfigGroup ksplashCfg = cfg.group("KSplash");
111 if (ksplashCfg.readEntry("Engine", QStringLiteral("KSplashQML")) == QLatin1String("KSplashQML")) {
112 p = new QProcess;
···115 }
116 }
117 return p;
118-@@ -329,7 +317,7 @@ bool startKDEInit()
119 {
120 // We set LD_BIND_NOW to increase the efficiency of kdeinit.
121 // kdeinit unsets this variable before loading applications.
···125 messageBox(QStringLiteral("startkde: Could not start kdeinit5. Check your installation."));
126 return false;
127--
128-2.23.1
129
···1+From 6477e377fcca39c07ef5f91a55084d7d74715d00 Mon Sep 17 00:00:00 2001
2From: Thomas Tuegel <ttuegel@mailbox.org>
3Date: Tue, 28 Jan 2020 05:00:53 -0600
4Subject: [PATCH 1/2] startkde
···6---
7 startkde/startplasma-waylandsession.cpp | 2 +-
8 startkde/startplasma-x11.cpp | 2 +-
9+ startkde/startplasma.cpp | 24 ++++++++++--------------
10+ 3 files changed, 12 insertions(+), 16 deletions(-)
1112diff --git a/startkde/startplasma-waylandsession.cpp b/startkde/startplasma-waylandsession.cpp
13+index 87c71c6b3..5fc53140e 100644
14--- a/startkde/startplasma-waylandsession.cpp
15+++ b/startkde/startplasma-waylandsession.cpp
16@@ -67,7 +67,7 @@ int main(int /*argc*/, char** /*argv*/)
···23 cleanupX11();
24 out << "startplasma-waylandsession: Done.\n";
25diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
26+index 3314b6283..14cbe29fa 100644
27--- a/startkde/startplasma-x11.cpp
28+++ b/startkde/startplasma-x11.cpp
29@@ -111,7 +111,7 @@ int main(int /*argc*/, char** /*argv*/)
···36 cleanupPlasmaEnvironment();
37 cleanupX11();
38diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
39+index 4c9f5cef6..5ea4c2cf1 100644
40--- a/startkde/startplasma.cpp
41+++ b/startkde/startplasma.cpp
42@@ -34,7 +34,7 @@ QTextStream out(stderr);
···48 }
4950 QStringList allServices(const QLatin1String& prefix)
51+@@ -242,15 +242,15 @@ void setupX11()
00000000000000052 // If the user has overwritten fonts, the cursor font may be different now
53 // so don't move this up.
54···69 }
7071 // TODO: Check if Necessary
72+@@ -267,11 +267,7 @@ bool syncDBusEnvironment()
73 {
74 int exitCode;
75 // At this point all environment variables are set, let's send it to the DBus session server to update the activation environment
···82 return exitCode == 0;
83 }
8485+@@ -287,7 +283,7 @@ void setupFontDpi()
86 //TODO port to c++?
87 const QByteArray input = "Xft.dpi: " + QByteArray::number(fontsCfg.readEntry("forceFontDPI", 0));
88 QProcess p;
···91 p.setProcessChannelMode(QProcess::ForwardedChannels);
92 p.write(input);
93 p.closeWriteChannel();
94+@@ -309,7 +305,7 @@ QProcess* setupKSplash()
95 KConfigGroup ksplashCfg = cfg.group("KSplash");
96 if (ksplashCfg.readEntry("Engine", QStringLiteral("KSplashQML")) == QLatin1String("KSplashQML")) {
97 p = new QProcess;
···100 }
101 }
102 return p;
103+@@ -331,7 +327,7 @@ bool startKDEInit()
104 {
105 // We set LD_BIND_NOW to increase the efficiency of kdeinit.
106 // kdeinit unsets this variable before loading applications.
···110 messageBox(QStringLiteral("startkde: Could not start kdeinit5. Check your installation."));
111 return false;
112--
113+2.25.1
114
···21 patches = [
22 # This fixes an issue where 'DDCA_Feature_List*' cannot be converted to
23 # 'DDCA_Feature_List'.
24- # This can be dropped with the next release.
25 # https://bugs.kde.org/show_bug.cgi?id=423605
26 (fetchpatch {
27 url = "https://invent.kde.org/plasma/powerdevil/-/commit/fcb26be2fb279e6ad3b7b814d26a5921d16201eb.patch";
28 sha256 = "0gdyaa0nd1c1d6x2h0m933lascm8zm5sikd99wxmkf7hhaby6k2s";
29 })
30- # This is a backport of
31- # https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch,
32- # which doesn't apply cleanly to 5.17.5. It should make it into 5.20, so
33- # this patch can be removed when we upgrade to 5.20.
34- ./patches/0001-Add-a-logging-category-config-file.patch
035 ];
36}
···21 patches = [
22 # This fixes an issue where 'DDCA_Feature_List*' cannot be converted to
23 # 'DDCA_Feature_List'.
024 # https://bugs.kde.org/show_bug.cgi?id=423605
25 (fetchpatch {
26 url = "https://invent.kde.org/plasma/powerdevil/-/commit/fcb26be2fb279e6ad3b7b814d26a5921d16201eb.patch";
27 sha256 = "0gdyaa0nd1c1d6x2h0m933lascm8zm5sikd99wxmkf7hhaby6k2s";
28 })
29+30+ # Reduce log message spam by setting the default log level to Warning.
31+ (fetchpatch {
32+ url = "https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch";
33+ sha256 = "0vj70mhx6qhvbh4vn9qk9ir5w4s2m76hw2lsxmh3ibgsydz4yilz";
34+ })
35 ];
36}