mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
The ofono MC plugin is being blocked by AppArmor, it does however has a code path to go around it by setting FORCE_RIL_NUM_MODEMS env var (seems to be added for this very use case). So use this for now
43 lines
1.2 KiB
CMake
43 lines
1.2 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 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
|
|
export QT_IM_MODULE=maliit
|
|
export XDG_CURRENT_DESKTOP=KDE
|
|
export KSCREEN_BACKEND=QScreen
|
|
|
|
export KDE_FULL_SESSION=1
|
|
export KDE_SESSION_VERSION=5
|
|
export PLASMA_PLATFORM=phone
|
|
export QT_QUICK_CONTROLS_STYLE=Plasma
|
|
|
|
export GRID_UNIT_PX=25
|
|
export FORCE_RIL_NUM_MODEMS=1
|
|
|
|
# upstart user session has useful bits like mtp-server
|
|
init --user &
|
|
|
|
/usr/bin/kbuildsycoca5
|
|
/usr/bin/kded5&
|
|
|
|
mc-tool request ofono/ofono/account0 online
|
|
paplay /usr/share/sounds/freedesktop/stereo/message.oga &
|
|
|
|
exec /usr/bin/plasmashell -p org.kde.satellite.phone 2>/tmp/plasmashell_logs
|