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