File indexing completed on 2024-11-03 08:13:27

0001 #!/bin/sh
0002 # SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 #
0004 # SPDX-License-Identifier: GPL-2.0-or-later
0005 
0006 . "@CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh"
0007 
0008 # This is a bit of a hack done because systemd starts in pam, and we only set our dev paths after all that is complete
0009 # This copies everything into a transient runtime directory that systemd reads and reloads the units
0010 
0011 if [ -n "$XDG_RUNTIME_DIR" ]; then
0012     mkdir -p "$XDG_RUNTIME_DIR/systemd/user.control"
0013     cp -r @KDE_INSTALL_FULL_SYSTEMDUSERUNITDIR@/* "$XDG_RUNTIME_DIR"/systemd/user.control
0014     systemctl --user daemon-reload
0015 fi
0016 
0017 
0018 startplasmamobile "$@"
0019