diff options
| author | Claudio Cambra <[email protected]> | 2022-01-04 21:53:44 +0000 |
|---|---|---|
| committer | Claudio Cambra <[email protected]> | 2022-01-04 21:53:44 +0000 |
| commit | 3abc4cfcd49df45c856e1b5f01da8de8f970ccb2 (patch) | |
| tree | 860d855d645fa0af5b96257220a3a09b6e1abf03 /src/main.cpp | |
| parent | dafa1e1f20d96a5704a63f645888cc7eeb5ed81d (diff) | |
Add Flatpak patches to Dolphin depending on CMake definition
When Dolphin gets packaged as a flatpak, this patch gets applied:
https://invent.kde.org/packaging/flatpak-kde-applications/-/blob/master/dolphinpatch.patch
That's not really an ideal solution, so this is probably a better idea -- to upstream the patches and apply them depending on a CMake definition
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index cda28c80c..7a2d42ea5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -154,7 +154,11 @@ int main(int argc, char **argv) QObject::connect(&app, &QGuiApplication::commitDataRequest, disableSessionManagement); QObject::connect(&app, &QGuiApplication::saveStateRequest, disableSessionManagement); +#ifdef FLATPAK + KDBusService dolphinDBusService(KDBusService::NoExitOnFailure); +#else KDBusService dolphinDBusService; +#endif DBusInterface interface; interface.setAsDaemon(); return app.exec(); |
