Changeset View
Changeset View
Standalone View
Standalone View
src/desktopportal.cpp
Show All 31 Lines | 27 | DesktopPortal::DesktopPortal(QObject *parent) | |||
---|---|---|---|---|---|
32 | , m_fileChooser(new FileChooserPortal(this)) | 32 | , m_fileChooser(new FileChooserPortal(this)) | ||
33 | , m_inhibit(new InhibitPortal(this)) | 33 | , m_inhibit(new InhibitPortal(this)) | ||
34 | , m_notification(new NotificationPortal(this)) | 34 | , m_notification(new NotificationPortal(this)) | ||
35 | , m_print(new PrintPortal(this)) | 35 | , m_print(new PrintPortal(this)) | ||
36 | , m_settings(new SettingsPortal(this)) | 36 | , m_settings(new SettingsPortal(this)) | ||
37 | { | 37 | { | ||
38 | const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toUpper(); | 38 | const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toUpper(); | ||
39 | if (xdgCurrentDesktop == "KDE") { | 39 | if (xdgCurrentDesktop == "KDE") { | ||
40 | m_background = new BackgroundPortal(this); | ||||
40 | m_screenshot = new ScreenshotPortal(this); | 41 | m_screenshot = new ScreenshotPortal(this); | ||
41 | #if SCREENCAST_ENABLED | 42 | #if SCREENCAST_ENABLED | ||
42 | m_screenCast = new ScreenCastPortal(this); | 43 | m_screenCast = new ScreenCastPortal(this); | ||
43 | m_remoteDesktop = new RemoteDesktopPortal(this); | 44 | m_remoteDesktop = new RemoteDesktopPortal(this); | ||
44 | WaylandIntegration::init(); | | |||
45 | #endif | 45 | #endif | ||
46 | WaylandIntegration::init(); | ||||
46 | } | 47 | } | ||
47 | } | 48 | } | ||
48 | 49 | | |||
49 | DesktopPortal::~DesktopPortal() | 50 | DesktopPortal::~DesktopPortal() | ||
50 | { | 51 | { | ||
51 | } | 52 | } |