Commit c19869c0 authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

[startkde] Drop setting up of ghostscript

This existed to include the .kde directories in the search paths for
ghostscript, which clearly hasn't been the case for years, but the code
has kept getting ported and migrated.

At some point this has got broken, startplasma-x11 doesn't call this
path and we've not had any bug reports. We may as well clear this
legacy.
parent 45700b99
......@@ -51,7 +51,6 @@ int main(int argc, char** argv)
} else {
qWarning() << "running kwin without Xwayland support";
}
setupGSLib();
if (!syncDBusEnvironment()) {
out << "Could not sync environment to dbus.\n";
......
......@@ -334,17 +334,6 @@ QProcess* setupKSplash()
return p;
}
void setupGSLib()
// Get Ghostscript to look into user's KDE fonts dir for additional Fontmap
{
const QByteArray usr_fdir = QFile::encodeName(QDir::home().absoluteFilePath(QStringLiteral(".fonts")));
if (qEnvironmentVariableIsSet("GS_LIB")) {
qputenv("GS_LIB", usr_fdir + ':' + qgetenv("GS_LIB"));
} else {
qputenv("GS_LIB", usr_fdir);
}
}
bool startPlasmaSession(bool wayland)
{
OrgKdeKSplashInterface iface(QStringLiteral("org.kde.KSplash"), QStringLiteral("/KSplash"), QDBusConnection::sessionBus());
......
......@@ -41,7 +41,6 @@ void cleanupX11();
bool syncDBusEnvironment();
void setupFontDpi();
QProcess* setupKSplash();
void setupGSLib();
void setupX11();
bool startKDEInit();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment