[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.
wilder-portage-prov
David Edmundson 6 years ago committed by David Edmundson
parent 45700b9958
commit c19869c0e8
  1. 1
      startkde/startplasma-waylandsession.cpp
  2. 11
      startkde/startplasma.cpp
  3. 1
      startkde/startplasma.h

@ -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();

Loading…
Cancel
Save