diff options
author | Yaroslav Bolyukin <iam@lach.pw> | 2021-09-27 22:54:13 +0300 |
---|---|---|
committer | Yaroslav Bolyukin <iam@lach.pw> | 2021-10-22 23:22:29 +0300 |
commit | 5cf1732f927bb5225d2fe01bc98da9feeb32ddf5 (patch) | |
tree | e597894abec4d31ab152bb56e747194847f29c7e /pkgs/desktops/plasma-5 | |
parent | d142f31c2e51921e0ca4ebd4bf8eaf7b3a5efb3e (diff) | |
download | nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar.gz nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar.bz2 nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar.lz nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar.xz nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.tar.zst nixpkgs-5cf1732f927bb5225d2fe01bc98da9feeb32ddf5.zip |
plasma-workspace: update patch
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
Diffstat (limited to 'pkgs/desktops/plasma-5')
-rw-r--r-- | pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch | 75 |
1 files changed, 26 insertions, 49 deletions
diff --git a/pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch b/pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch index f9347de7d56..508d3949884 100644 --- a/pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch +++ b/pkgs/desktops/plasma-5/plasma-workspace/0001-startkde.patch @@ -4,56 +4,56 @@ Date: Mon, 7 Sep 2020 18:09:52 +0100 Subject: [PATCH] startkde --- - startkde/plasma-session/startup.cpp | 2 +- - startkde/startplasma-waylandsession.cpp | 2 +- - startkde/startplasma-x11.cpp | 2 +- - startkde/startplasma.cpp | 16 ++++++++-------- - 4 files changed, 11 insertions(+), 11 deletions(-) + startkde/plasma-session/startup.cpp | 2 +- + startkde/startplasma-waylandsession.cpp | 2 +- + startkde/startplasma-x11.cpp | 2 +- + startkde/startplasma.cpp | 8 ++++---- + 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/startup.cpp -index c3e77d4..88cb0e9 100644 +index 270744053..356160e96 100644 --- a/startkde/plasma-session/startup.cpp +++ b/startkde/plasma-session/startup.cpp -@@ -223,7 +223,7 @@ Startup::Startup(QObject *parent) - upAndRunning(QStringLiteral("ksmserver")); +@@ -143,7 +143,7 @@ Startup::Startup(QObject *parent) const AutoStart autostart; + // Keep for KF5; remove in KF6 (KInit will be gone then) - QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList()); + QProcess::execute(QStringLiteral(NIXPKGS_START_KDEINIT_WRAPPER), QStringList()); - KJob *phase1; - QProcessEnvironment kdedProcessEnv; + KJob *windowManagerJob = nullptr; + if (qEnvironmentVariable("XDG_SESSION_TYPE") != QLatin1String("wayland")) { diff --git a/startkde/startplasma-waylandsession.cpp b/startkde/startplasma-waylandsession.cpp -index 4fbfe18..6ba916c 100644 +index 3a054a04f..b2e7ab3fb 100644 --- a/startkde/startplasma-waylandsession.cpp +++ b/startkde/startplasma-waylandsession.cpp -@@ -65,7 +65,7 @@ int main(int argc, char **argv) - waitForKonqi(); +@@ -33,7 +33,7 @@ int main(int argc, char **argv) out << "startplasma-waylandsession: Shutting down...\n"; + // Keep for KF5; remove in KF6 (KInit will be gone then) - runSync(QStringLiteral("kdeinit5_shutdown"), {}); + runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {}); - cleanupX11(); out << "startplasma-waylandsession: Done.\n"; + diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp -index 4ddf9f8..e0e59cd 100644 +index d6b2c5439..534eeb0e5 100644 --- a/startkde/startplasma-x11.cpp +++ b/startkde/startplasma-x11.cpp -@@ -110,7 +110,7 @@ int main(int argc, char **argv) - +@@ -90,7 +90,7 @@ int main(int argc, char **argv) out << "startkde: Shutting down...\n"; + // Keep for KF5; remove in KF6 (KInit will be gone then) - runSync(QStringLiteral("kdeinit5_shutdown"), {}); + runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {}); - cleanupPlasmaEnvironment(); - cleanupX11(); + cleanupPlasmaEnvironment(oldSystemdEnvironment); + diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp -index 9809197..1250e3e 100644 +index 008fdfcaf..72468f21c 100644 --- a/startkde/startplasma.cpp +++ b/startkde/startplasma.cpp -@@ -46,7 +46,7 @@ QTextStream out(stderr); +@@ -39,7 +39,7 @@ QTextStream out(stderr); void messageBox(const QString &text) { out << text; @@ -62,38 +62,16 @@ index 9809197..1250e3e 100644 } QStringList allServices(const QLatin1String &prefix) -@@ -267,8 +267,8 @@ void setupX11() +@@ -340,7 +340,7 @@ void setupX11() // If the user has overwritten fonts, the cursor font may be different now // so don't move this up. - runSync(QStringLiteral("xsetroot"), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")}); -- runSync(QStringLiteral("xprop"), + runSync(QStringLiteral(NIXPKGS_XSETROOT), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")}); -+ runSync(QStringLiteral(NIXPKGS_XPROP), - {QStringLiteral("-root"), - QStringLiteral("-f"), - QStringLiteral("KDE_FULL_SESSION"), -@@ -276,7 +276,7 @@ void setupX11() - QStringLiteral("-set"), - QStringLiteral("KDE_FULL_SESSION"), - QStringLiteral("true")}); -- runSync(QStringLiteral("xprop"), -+ runSync(QStringLiteral(NIXPKGS_XPROP), - {QStringLiteral("-root"), - QStringLiteral("-f"), - QStringLiteral("KDE_SESSION_VERSION"), -@@ -288,8 +288,8 @@ void setupX11() - - void cleanupX11() - { -- runSync(QStringLiteral("xprop"), {QStringLiteral("-root"), QStringLiteral("-remove"), QStringLiteral("KDE_FULL_SESSION")}); -- runSync(QStringLiteral("xprop"), {QStringLiteral("-root"), QStringLiteral("-remove"), QStringLiteral("KDE_SESSION_VERSION")}); -+ runSync(QStringLiteral(NIXPKGS_XPROP), {QStringLiteral("-root"), QStringLiteral("-remove"), QStringLiteral("KDE_FULL_SESSION")}); -+ runSync(QStringLiteral(NIXPKGS_XPROP), {QStringLiteral("-root"), QStringLiteral("-remove"), QStringLiteral("KDE_SESSION_VERSION")}); } - // TODO: Check if Necessary -@@ -321,7 +321,7 @@ void setupFontDpi() + void cleanupPlasmaEnvironment(const std::optional<QStringList> &oldSystemdEnvironment) +@@ -403,7 +403,7 @@ void setupFontDpi() // TODO port to c++? const QByteArray input = "Xft.dpi: " + QByteArray::number(fontsCfg.readEntry("forceFontDPI", 0)); QProcess p; @@ -102,7 +80,7 @@ index 9809197..1250e3e 100644 p.setProcessChannelMode(QProcess::ForwardedChannels); p.write(input); p.closeWriteChannel(); -@@ -343,7 +343,7 @@ QProcess *setupKSplash() +@@ -425,7 +425,7 @@ QProcess *setupKSplash() KConfigGroup ksplashCfg = cfg.group("KSplash"); if (ksplashCfg.readEntry("Engine", QStringLiteral("KSplashQML")) == QLatin1String("KSplashQML")) { p = new QProcess; @@ -112,5 +90,4 @@ index 9809197..1250e3e 100644 } return p; -- -2.30.0 - +2.33.0 |