diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,12 @@ 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(services) add_subdirectory(applets) diff --git a/plasma-mobile.desktop.cmake b/plasma-mobile.desktop.cmake new file mode 100644 --- /dev/null +++ b/plasma-mobile.desktop.cmake @@ -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 diff --git a/shell/contents/loader.qml b/shell/contents/loader.qml --- a/shell/contents/loader.qml +++ b/shell/contents/loader.qml @@ -25,7 +25,7 @@ property string shell : "org.kde.plasma.phone" property bool willing : true - property int priority : 10 + property int priority : currentSession == "plasma-mobile" ? 0 : 10 // This is not needed, but allows the // handler to know whether its shell is loaded