diff --git a/src/plugin-qt/wallpaperslideshow/plugin.cpp b/src/plugin-qt/wallpaperslideshow/plugin.cpp index a48cb46c..7f18ea03 100644 --- a/src/plugin-qt/wallpaperslideshow/plugin.cpp +++ b/src/plugin-qt/wallpaperslideshow/plugin.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2025 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later @@ -18,6 +18,9 @@ extern "C" int DSMRegister(const char *name, void *data) Q_UNUSED(name) Q_UNUSED(data) + if (qEnvironmentVariable("XDG_SESSION_TYPE") == QLatin1String("wayland")) + return 0; + service = new WallpaperSlideshow(); new WallpaperSlideshowAdaptor(service); bool wallpaperSlideshowRegister = QDBusConnection::sessionBus().registerService(WALLPAPER_SLIDESHOW_SERVICE);