Summary: Creates the necessary files in the build directory as well as provide a script that will install them to /usr so the login manager can find it. Reviewers: ngraham, #plasma, hein Reviewed By: ngraham, #plasma, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D21992wilder-5.17
parent
53d45a126e
commit
9d9c1fc3b3
8 changed files with 45 additions and 11 deletions
@ -0,0 +1,19 @@ |
||||
## For Plasma end users |
||||
|
||||
configure_file(plasma.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma.desktop) |
||||
install(FILES |
||||
${CMAKE_CURRENT_BINARY_DIR}/plasma.desktop |
||||
DESTINATION ${KDE_INSTALL_DATADIR}/xsessions |
||||
) |
||||
|
||||
configure_file(plasmawayland.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasmawayland.desktop) |
||||
install(FILES |
||||
${CMAKE_CURRENT_BINARY_DIR}/plasmawayland.desktop |
||||
DESTINATION ${KDE_INSTALL_DATADIR}/wayland-sessions |
||||
) |
||||
|
||||
## For Plasma developers |
||||
configure_file(startplasma-dev.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/startplasma-dev.sh) |
||||
configure_file(plasmax11-dev.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasmax11-dev.desktop) |
||||
configure_file(plasmawayland-dev.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasmawayland-dev.desktop) |
||||
configure_file(install-sessions.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/install-sessions.sh) |
||||
@ -0,0 +1,7 @@ |
||||
#!/bin/sh |
||||
set -e |
||||
|
||||
install @CMAKE_CURRENT_BINARY_DIR@/plasmax11-dev.desktop /usr/share/xsessions/ |
||||
install @CMAKE_CURRENT_BINARY_DIR@/plasmawayland-dev.desktop /usr/share/wayland-sessions/ |
||||
install @CMAKE_BINARY_DIR@/prefix.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh |
||||
install @CMAKE_CURRENT_BINARY_DIR@/startplasma-dev.sh @CMAKE_INSTALL_FULL_LIBEXECDIR@ |
||||
@ -0,0 +1,6 @@ |
||||
[Desktop Entry] |
||||
Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/startplasma-dev.sh -wayland |
||||
DesktopNames=KDE |
||||
Name=Plasma (Development ${CMAKE_INSTALL_FULL_BINDIR}) |
||||
Comment=Plasma by KDE |
||||
X-KDE-PluginInfo-Version=${PROJECT_VERSION} |
||||
@ -0,0 +1,7 @@ |
||||
[Desktop Entry] |
||||
Type=XSession |
||||
Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/startplasma-dev.sh -x11 |
||||
DesktopNames=KDE |
||||
Name=Plasma (Development ${CMAKE_INSTALL_FULL_BINDIR}) |
||||
Comment=Plasma by KDE |
||||
X-KDE-PluginInfo-Version=${PROJECT_VERSION} |
||||
@ -0,0 +1,5 @@ |
||||
#!/bin/bash |
||||
|
||||
source @CMAKE_INSTALL_FULL_LIBEXECDIR@/plasma-dev-prefix.sh |
||||
|
||||
startplasma$@ |
||||
Loading…
Reference in new issue