shift-shell/bin/startplasmamobile-dev.sh.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
647 B
CMake
Raw Permalink Normal View History

2023-11-05 21:33:06 +00:00
#!/bin/sh
2022-06-27 16:42:19 +00:00
# SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org>
#
# SPDX-License-Identifier: GPL-2.0-or-later
. "@CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh"
2022-06-27 16:42:19 +00:00
# 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
# This copies everything into a transient runtime directory that systemd reads and reloads the units
if [ -n "$XDG_RUNTIME_DIR" ]; then
2022-06-27 16:42:19 +00:00
mkdir -p "$XDG_RUNTIME_DIR/systemd/user.control"
cp -r @KDE_INSTALL_FULL_SYSTEMDUSERUNITDIR@/* "$XDG_RUNTIME_DIR"/systemd/user.control
2022-06-27 16:42:19 +00:00
systemctl --user daemon-reload
fi
startplasmamobile "$@"
2022-06-27 16:42:19 +00:00