Add Plasma Mobile session

Summary: And also, autoload Plasma Mobile shell if session is plasma-mobile

Test Plan: loaded Plasma Mobile session from the sddm

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8910
This commit is contained in:
Bhushan Shah 2017-11-20 10:47:15 +05:30
parent eced967522
commit 3a73eae701
3 changed files with 14 additions and 1 deletions

View file

@ -50,6 +50,12 @@ install( FILES kwinmultitasking/metadata.desktop DESTINATION ${SERVICES_INSTALL_
install( DIRECTORY qtvirtualkeyboardplugin/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/VirtualKeyboard/Styles/Plasma ) install( DIRECTORY qtvirtualkeyboardplugin/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/VirtualKeyboard/Styles/Plasma )
configure_file(plasma-mobile.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop
DESTINATION ${KDE_INSTALL_DATADIR}/wayland-sessions
)
add_subdirectory(bin) add_subdirectory(bin)
#add_subdirectory(services) #add_subdirectory(services)
add_subdirectory(applets) add_subdirectory(applets)

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Exec=dbus-launch --exit-with-session ${CMAKE_INSTALL_FULL_BINDIR}/startplasmacompositor
TryExec=${CMAKE_INSTALL_FULL_BINDIR}/startplasmacompositor
DesktopNames=KDE
Name=Plasma Mobile
Comment=Plasma Mobile by KDE

View file

@ -25,7 +25,7 @@ Item {
property string shell : "org.kde.plasma.phone" property string shell : "org.kde.plasma.phone"
property bool willing : true property bool willing : true
property int priority : 10 property int priority : currentSession == "plasma-mobile" ? 0 : 10
// This is not needed, but allows the // This is not needed, but allows the
// handler to know whether its shell is loaded // handler to know whether its shell is loaded