#!/bin/sh # SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez # SPDX-FileCopyrightText: 2021 Nate Graham # SPDX-FileCopyrightText: 2022 Devin Lin # # SPDX-License-Identifier: GPL-2.0-or-later set -e # Make built-from-source sessions appear in login screen sudo install @CMAKE_CURRENT_BINARY_DIR@/plasma-mobile-dev.desktop /usr/share/wayland-sessions/ install @CMAKE_CURRENT_BINARY_DIR@/startplasmamobile-dev.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@ # Make the system DBus able to see any new DBus files that have been added to # the built-from-source plasma session which are not yet present in the system # DBus locations. Because some distros have security policies which prevent the # use of DBus files in a user's homedir, and even symlinks outside, # we have to copy the files into a system-owned location. sudo mkdir -p /opt/kde-dbus-scripts/ sudo cp -r @KDE_INSTALL_FULL_DBUSDIR@/* /opt/kde-dbus-scripts/ if [ ! -f /etc/dbus-1/session-local.conf ] then cat > session-local.conf << EOF /opt/kde-dbus-scripts/services /opt/kde-dbus-scripts/system-services /opt/kde-dbus-scripts/system.d/ /opt/kde-dbus-scripts/interfaces/ EOF sudo mv session-local.conf /etc/dbus-1/ fi