2021-03-19 17:17:44 +00:00
|
|
|
From 65ed69a38a9ffee21f0eb36de1f7a3f152111cad Mon Sep 17 00:00:00 2001
|
2020-12-25 13:55:36 +00:00
|
|
|
From: Tom Hall <tahall256@protonmail.ch>
|
|
|
|
Date: Mon, 7 Sep 2020 18:09:52 +0100
|
|
|
|
Subject: [PATCH] startkde
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
---
|
2021-12-06 16:07:01 +00:00
|
|
|
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(-)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/startup.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
index 270744053..356160e96 100644
|
2020-12-25 13:55:36 +00:00
|
|
|
--- a/startkde/plasma-session/startup.cpp
|
|
|
|
+++ b/startkde/plasma-session/startup.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -143,7 +143,7 @@ Startup::Startup(QObject *parent)
|
2020-12-25 13:55:36 +00:00
|
|
|
const AutoStart autostart;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
2020-12-25 13:55:36 +00:00
|
|
|
- QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList());
|
|
|
|
+ QProcess::execute(QStringLiteral(NIXPKGS_START_KDEINIT_WRAPPER), QStringList());
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
KJob *windowManagerJob = nullptr;
|
|
|
|
if (qEnvironmentVariable("XDG_SESSION_TYPE") != QLatin1String("wayland")) {
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/startkde/startplasma-waylandsession.cpp b/startkde/startplasma-waylandsession.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
index 3a054a04f..b2e7ab3fb 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/startkde/startplasma-waylandsession.cpp
|
|
|
|
+++ b/startkde/startplasma-waylandsession.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -33,7 +33,7 @@ int main(int argc, char **argv)
|
2020-04-24 23:36:52 +00:00
|
|
|
out << "startplasma-waylandsession: Shutting down...\n";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
2020-04-24 23:36:52 +00:00
|
|
|
- runSync(QStringLiteral("kdeinit5_shutdown"), {});
|
|
|
|
+ runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {});
|
|
|
|
|
|
|
|
out << "startplasma-waylandsession: Done.\n";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
index d6b2c5439..534eeb0e5 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/startkde/startplasma-x11.cpp
|
|
|
|
+++ b/startkde/startplasma-x11.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
|
2020-04-24 23:36:52 +00:00
|
|
|
out << "startkde: Shutting down...\n";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
// Keep for KF5; remove in KF6 (KInit will be gone then)
|
2020-04-24 23:36:52 +00:00
|
|
|
- runSync(QStringLiteral("kdeinit5_shutdown"), {});
|
|
|
|
+ runSync(QStringLiteral(NIXPKGS_KDEINIT5_SHUTDOWN), {});
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
cleanupPlasmaEnvironment(oldSystemdEnvironment);
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
index 008fdfcaf..72468f21c 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/startkde/startplasma.cpp
|
|
|
|
+++ b/startkde/startplasma.cpp
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -39,7 +39,7 @@ QTextStream out(stderr);
|
2020-04-24 23:36:52 +00:00
|
|
|
void messageBox(const QString &text)
|
|
|
|
{
|
|
|
|
out << text;
|
|
|
|
- runSync(QStringLiteral("xmessage"), {QStringLiteral("-geometry"), QStringLiteral("500x100"), text});
|
|
|
|
+ runSync(QStringLiteral(NIXPKGS_XMESSAGE), {QStringLiteral("-geometry"), QStringLiteral("500x100"), text});
|
|
|
|
}
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
QStringList allServices(const QLatin1String &prefix)
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -340,7 +340,7 @@ void setupX11()
|
2021-03-19 17:17:44 +00:00
|
|
|
// If the user has overwritten fonts, the cursor font may be different now
|
|
|
|
// so don't move this up.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
- runSync(QStringLiteral("xsetroot"), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")});
|
|
|
|
+ runSync(QStringLiteral(NIXPKGS_XSETROOT), {QStringLiteral("-cursor_name"), QStringLiteral("left_ptr")});
|
|
|
|
}
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
void cleanupPlasmaEnvironment(const std::optional<QStringList> &oldSystemdEnvironment)
|
|
|
|
@@ -403,7 +403,7 @@ void setupFontDpi()
|
2021-03-19 17:17:44 +00:00
|
|
|
// TODO port to c++?
|
2020-04-24 23:36:52 +00:00
|
|
|
const QByteArray input = "Xft.dpi: " + QByteArray::number(fontsCfg.readEntry("forceFontDPI", 0));
|
|
|
|
QProcess p;
|
2021-03-19 17:17:44 +00:00
|
|
|
- p.start(QStringLiteral("xrdb"), {QStringLiteral("-quiet"), QStringLiteral("-merge"), QStringLiteral("-nocpp")});
|
|
|
|
+ p.start(QStringLiteral(NIXPKGS_XRDB), {QStringLiteral("-quiet"), QStringLiteral("-merge"), QStringLiteral("-nocpp")});
|
2020-04-24 23:36:52 +00:00
|
|
|
p.setProcessChannelMode(QProcess::ForwardedChannels);
|
|
|
|
p.write(input);
|
|
|
|
p.closeWriteChannel();
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -425,7 +425,7 @@ QProcess *setupKSplash()
|
2020-04-24 23:36:52 +00:00
|
|
|
KConfigGroup ksplashCfg = cfg.group("KSplash");
|
|
|
|
if (ksplashCfg.readEntry("Engine", QStringLiteral("KSplashQML")) == QLatin1String("KSplashQML")) {
|
|
|
|
p = new QProcess;
|
2021-03-19 17:17:44 +00:00
|
|
|
- p->start(QStringLiteral("ksplashqml"), {ksplashCfg.readEntry("Theme", QStringLiteral("Breeze"))});
|
|
|
|
+ p->start(QStringLiteral(CMAKE_INSTALL_FULL_BINDIR "/ksplashqml"), {ksplashCfg.readEntry("Theme", QStringLiteral("Breeze"))});
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return p;
|
|
|
|
--
|
2021-12-06 16:07:01 +00:00
|
|
|
2.33.0
|