2014-11-04 06:48:38 +00:00
|
|
|
#!/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 QT_QPA_EGLFS_DEPTH
|
|
|
|
|
unset QT_QPA_EGLFS_HIDECURSOR
|
|
|
|
|
unset QT_COMPOSITOR_NEGATE_INVERTED_Y
|
|
|
|
|
|
2017-09-13 12:50:34 +00:00
|
|
|
export EGL_PLATFORM=wayland
|
2014-11-04 06:48:38 +00:00
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
|
export QT_QPA_PLATFORMTHEME=KDE
|
|
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
|
|
|
export XDG_CURRENT_DESKTOP=KDE
|
|
|
|
|
export KSCREEN_BACKEND=QScreen
|
|
|
|
|
|
|
|
|
|
export KDE_FULL_SESSION=1
|
|
|
|
|
export KDE_SESSION_VERSION=5
|
2015-10-27 11:00:19 +00:00
|
|
|
export PLASMA_PLATFORM=phone:handheld
|
2015-06-14 02:02:16 +00:00
|
|
|
export QT_QUICK_CONTROLS_STYLE=Plasma
|
2014-11-04 06:48:38 +00:00
|
|
|
|
2015-06-13 22:22:21 +00:00
|
|
|
export GRID_UNIT_PX=25
|
2015-06-17 22:56:38 +00:00
|
|
|
export FORCE_RIL_NUM_MODEMS=1
|
2015-09-02 08:53:20 +00:00
|
|
|
export QT_QUICK_CONTROLS_MOBILE=true
|
2015-06-11 02:07:41 +00:00
|
|
|
|
2015-07-15 11:02:44 +00:00
|
|
|
@CMAKE_INSTALL_FULL_LIBEXECDIR@/ksyncdbusenv
|
|
|
|
|
|
2015-06-15 23:07:39 +00:00
|
|
|
# upstart user session has useful bits like mtp-server
|
|
|
|
|
init --user &
|
2016-09-29 09:22:03 +00:00
|
|
|
|
|
|
|
|
# HACK: FIXME: This should autostart when required but appearantly there is some async magic which prevents it gettings started.
|
|
|
|
|
# start signond service
|
|
|
|
|
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:com.google.code.AccountsSSO.SingleSignOn uint32:0
|
|
|
|
|
|
2015-07-03 15:27:28 +00:00
|
|
|
# start mission control
|
|
|
|
|
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:org.freedesktop.Telepathy.MissionControl5 uint32:0
|
2015-06-15 23:07:39 +00:00
|
|
|
|
2015-09-10 19:22:25 +00:00
|
|
|
sleep 1
|
|
|
|
|
paplay /usr/share/sounds/sitter/ohits.ogg &
|
2015-06-14 01:44:35 +00:00
|
|
|
|
2015-09-15 12:50:18 +00:00
|
|
|
# start polkit authentication agent
|
|
|
|
|
@CMAKE_INSTALL_FULL_LIBEXECDIR@/polkit-kde-authentication-agent-1 &
|
|
|
|
|
|
2016-08-12 05:57:27 +00:00
|
|
|
# start powerdevil
|
|
|
|
|
@CMAKE_INSTALL_FULL_LIBEXECDIR@/org_kde_powerdevil &
|
|
|
|
|
|
2015-06-18 23:31:44 +00:00
|
|
|
exec /usr/bin/plasmashell -p org.kde.plasma.phone 2>/tmp/plasmashell_logs
|