shift-shell/bin/plasma-phone.cmake

42 lines
1.1 KiB
CMake
Raw Normal View History

#!/bin/sh
#
# Script that starts the Plasma phone UI.
#
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
unset EGL_PLATFORM
unset QT_QPA_PLATFORM
unset QT_QPA_EGLFS_DEPTH
unset QT_QPA_EGLFS_HIDECURSOR
unset QT_COMPOSITOR_NEGATE_INVERTED_Y
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=KDE
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
2015-06-09 18:42:11 +00:00
export QT_IM_MODULE=maliit
export XDG_CURRENT_DESKTOP=KDE
export KSCREEN_BACKEND=QScreen
export KDE_FULL_SESSION=1
export KDE_SESSION_VERSION=5
2015-06-11 23:44:20 +00:00
export PLASMA_PLATFORM=phone
2015-06-14 02:02:16 +00:00
export QT_QUICK_CONTROLS_STYLE=Plasma
2015-06-13 22:22:21 +00:00
export GRID_UNIT_PX=25
export FORCE_RIL_NUM_MODEMS=1
2015-06-11 02:07:41 +00:00
2015-06-15 23:07:39 +00:00
# upstart user session has useful bits like mtp-server
init --user &
sleep 5
2015-06-23 02:00:26 +00:00
paplay /usr/share/sounds/sitter/brmm.ogg &
exec /usr/bin/plasmashell -p org.kde.plasma.phone 2>/tmp/plasmashell_logs