mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 02:05:54 +00:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "config-startplasma.h"
|
|
#include "kcheckrunning/kcheckrunning.h"
|
|
#include <ksplashinterface.h>
|
|
#include <optional>
|
|
|
|
extern QTextStream out;
|
|
|
|
void sigtermHandler(int signalNumber);
|
|
QStringList allServices(const QLatin1String &prefix);
|
|
int runSync(const QString &program, const QStringList &args, const QStringList &env = {});
|
|
void sourceFiles(const QStringList &files);
|
|
void messageBox(const QString &text);
|
|
|
|
void createConfigDirectory();
|
|
void runStartupConfig();
|
|
void setupCursor(bool wayland);
|
|
std::optional<QProcessEnvironment> getSystemdEnvironment();
|
|
void importSystemdEnvrionment();
|
|
void runEnvironmentScripts();
|
|
void setupPlasmaEnvironment();
|
|
void cleanupPlasmaEnvironment(const std::optional<QProcessEnvironment> &oldSystemdEnvironment);
|
|
bool syncDBusEnvironment();
|
|
void setupFontDpi();
|
|
QProcess *setupKSplash();
|
|
void setupX11();
|
|
|
|
bool startPlasmaSession(bool wayland);
|
|
|
|
void waitForKonqi();
|
|
|
|
void playStartupSound(QObject *parent);
|
|
|
|
void gentleTermination(QProcess *process);
|
|
|
|
struct KillBeforeDeleter {
|
|
static inline void cleanup(QProcess *pointer)
|
|
{
|
|
if (pointer) {
|
|
gentleTermination(pointer);
|
|
}
|
|
delete pointer;
|
|
}
|
|
};
|