File indexing completed on 2025-04-27 08:19:39
0001 #!/bin/sh 0002 # SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 # SPDX-FileCopyrightText: 2021 Nate Graham <nate@kde.org> 0004 # SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> 0005 # 0006 # SPDX-License-Identifier: GPL-2.0-or-later 0007 0008 set -e 0009 0010 # Make built-from-source sessions appear in login screen 0011 sudo install @CMAKE_CURRENT_BINARY_DIR@/plasma-mobile-dev.desktop /usr/share/wayland-sessions/ 0012 install @CMAKE_CURRENT_BINARY_DIR@/startplasmamobile-dev.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@ 0013 0014 # Make the system DBus able to see any new DBus files that have been added to 0015 # the built-from-source plasma session which are not yet present in the system 0016 # DBus locations. Because some distros have security policies which prevent the 0017 # use of DBus files in a user's homedir, and even symlinks outside, 0018 # we have to copy the files into a system-owned location. 0019 sudo mkdir -p /opt/kde-dbus-scripts/ 0020 sudo cp -r @KDE_INSTALL_FULL_DBUSDIR@/* /opt/kde-dbus-scripts/ 0021 if [ ! -f /etc/dbus-1/session-local.conf ] 0022 then 0023 cat > session-local.conf << EOF 0024 <busconfig> 0025 <servicedir>/opt/kde-dbus-scripts/services</servicedir> 0026 <servicedir>/opt/kde-dbus-scripts/system-services</servicedir> 0027 <includedir>/opt/kde-dbus-scripts/system.d/</includedir> 0028 <includedir>/opt/kde-dbus-scripts/interfaces/</includedir> 0029 </busconfig> 0030 EOF 0031 sudo mv session-local.conf /etc/dbus-1/ 0032 fi 0033