diff options
author | Erik Verbruggen <erik@verbruggen.consulting> | 2021-10-30 18:21:16 +0300 |
---|---|---|
committer | Erik Verbruggen <Erik.Verbruggen@Me.com> | 2021-11-17 15:56:22 +0300 |
commit | 7fe14d0e67f83c3a4a6512b9c1c1826b92400fe8 (patch) | |
tree | 18f7ee0e488ec75e55ed400ae6d735ebae875849 /src/gui/guiutility_unix.cpp | |
parent | 4c726d7ea557ab7678dafe54d487e8b9a54600f6 (diff) |
Clean-ups before switching macOS to local sockets
- introduce the Platform class, which can do RAII style set-up/tear-down
- macOS: move Finder integration into the Utility namespace
- move retrieve the socket path into the Utility namespace
Diffstat (limited to 'src/gui/guiutility_unix.cpp')
-rw-r--r-- | src/gui/guiutility_unix.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gui/guiutility_unix.cpp b/src/gui/guiutility_unix.cpp new file mode 100644 index 000000000..e3f409c3e --- /dev/null +++ b/src/gui/guiutility_unix.cpp @@ -0,0 +1,36 @@ +/* + * Copyright (C) by Erik Verbruggen <erik@verbruggen.consulting> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include "guiutility.h" +#include "theme.h" + +#include <QStandardPaths> + +namespace OCC { + +void Utility::tweakUIStyle() +{ +} + +void Utility::startShellIntegration() +{ +} + +QString Utility::socketApiSocketPath() +{ + QString runtimeDir = QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation); + return runtimeDir + "/" + Theme::instance()->appName() + "/socket"; +} + +} // namespace OCC |