File indexing completed on 2024-05-12 09:40:56
0001 #!/bin/sh 0002 # SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 # SPDX-FileCopyrightText: 2021 Nate Graham <nate@kde.org> 0004 # 0005 # SPDX-License-Identifier: GPL-2.0-or-later 0006 0007 set -e 0008 0009 # Make built-from-source sessions appear in login screen 0010 # Override mode for desktop files to 0644 == "rw-r--r--" 0011 sudo install -D -m 0644 @CMAKE_CURRENT_BINARY_DIR@/plasmax11-dev6.desktop /usr/share/xsessions/ 0012 sudo install -D -m 0644 @CMAKE_CURRENT_BINARY_DIR@/plasmawayland-dev6.desktop /usr/share/wayland-sessions/ 0013 install @CMAKE_BINARY_DIR@/prefix.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh 0014 install @CMAKE_CURRENT_BINARY_DIR@/startplasma-dev.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@ 0015 0016 # Make the system DBus able to see any new DBus files that have been added to 0017 # the built-from-source plasma session which are not yet present in the system 0018 # DBus locations. Because some distros have security policies which prevent the 0019 # use of DBus files in a user's homedir, and even symlinks outside, 0020 # we have to copy the files into a system-owned location. 0021 sudo mkdir -p /opt/kde-dbus-scripts/ 0022 sudo cp -r @KDE_INSTALL_FULL_DBUSDIR@/* /opt/kde-dbus-scripts/ 0023 0024 old_file='/etc/dbus-1/session-local.conf' 0025 [ -e $old_file ] && grep --quiet '/opt/kde-dbus-scripts' $old_file && sudo rm -v $old_file 0026 0027 cat > /tmp/00-plasma.conf << EOF 0028 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" 0029 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> 0030 <!-- This file is autogenerated by Plasma's install-sessions.sh; Changes may get overwritten! --> 0031 <busconfig> 0032 <servicedir>/opt/kde-dbus-scripts/services</servicedir> 0033 <includedir>/opt/kde-dbus-scripts/session.d/</includedir> 0034 <standard_session_servicedirs/> 0035 </busconfig> 0036 EOF 0037 sudo mkdir -p /etc/dbus-1/session.d/ 0038 sudo mv /tmp/00-plasma.conf /etc/dbus-1/session.d/