shift-shell/bin/plasma-phone.cmake
Bhushan Shah 0fbc1cbaef Disable the startup sound
This served us well so far, the start-up sound was added as debug
mechanism when GUI was not running on Nexus 5 in early days. However now
that we have better mechansims to debug GUI (journalctl, UART, ssh etc).
This no-longer is needed. In addition to that we got enough complaints
about the startup sound if people are trying to hack on plasma mobile on
quiet place like library.

As a historical thing, sound file is still present, just not running
anymore.
2018-11-17 08:57:10 +05:30

48 lines
1.7 KiB
CMake

#!/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
export EGL_PLATFORM=wayland
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
export PLASMA_PLATFORM=phone:handheld
export QT_QUICK_CONTROLS_STYLE=Plasma
export GRID_UNIT_PX=25
export FORCE_RIL_NUM_MODEMS=1
export QT_QUICK_CONTROLS_MOBILE=true
@CMAKE_INSTALL_FULL_LIBEXECDIR@/ksyncdbusenv
# 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
# 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
# start polkit authentication agent
@CMAKE_INSTALL_FULL_LIBEXECDIR@/polkit-kde-authentication-agent-1 &
# start powerdevil
@CMAKE_INSTALL_FULL_LIBEXECDIR@/org_kde_powerdevil &
exec /usr/bin/plasmashell -p org.kde.plasma.phone 2>/tmp/plasmashell_logs