-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathstartcask.h
52 lines (41 loc) · 1.32 KB
/
startcask.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <[email protected]>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "config-startcask.h"
#include <QProcessEnvironment>
//#include "kcheckrunning/kcheckrunning.h"
//#include <ksplashinterface.h>
#include <optional>
extern QTextStream out;
void sigtermHandler(int signalNumber);
void sigHandler(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();
std::optional<QProcessEnvironment> getSystemdEnvironment();
void importSystemdEnvrionment();
void runEnvironmentScripts();
void setupCaskEnvironment();
void cleanupPlasmaEnvironment(const std::optional<QProcessEnvironment> &oldSystemdEnvironment);
bool syncDBusEnvironment();
void setupFontDpi();
//QProcess *setupKSplash();
bool startCaskSession();
void waitForKonqi();
void playStartupSound(QObject *parent);
void gentleTermination(QProcess *process);
struct KillBeforeDeleter {
static inline void cleanup(QProcess *pointer)
{
if (pointer) {
gentleTermination(pointer);
}
delete pointer;
}
};