startplasma-dev.sh.cmake 536 Bytes
Newer Older
1
2
3
4
#!/bin/bash

source @CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh

David Edmundson's avatar
David Edmundson committed
5
6
7
# 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

Nicolas Fella's avatar
Nicolas Fella committed
8
if [ ! -z  "$XDG_RUNTIME_DIR" ]; then
David Edmundson's avatar
David Edmundson committed
9
10
11
    mkdir -p "$XDG_RUNTIME_DIR/systemd/user.control"
    command cp -r @KDE_INSTALL_FULL_SYSTEMDUSERUNITDIR@/* $XDG_RUNTIME_DIR/systemd/user.control
    systemctl --user daemon-reload
Nicolas Fella's avatar
Nicolas Fella committed
12
fi
David Edmundson's avatar
David Edmundson committed
13
14


15
startplasma$@