From d6efa94dd4ce02b48024427da72f19af69b96146 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 5 Dec 2017 00:19:17 +0100 Subject: [PATCH] Re-add powerdevil and polkit-kde-agent as runtime deps to postmarketos-ui-plasma-mobile (#977) * Re-add powerdevil and polkit-kde-agent as runtime deps to postmarketos-ui-plasma-mobile * Add kwinrc to start applications maximized --- main/postmarketos-ui-plasma-mobile/APKBUILD | 11 ++++++++--- main/postmarketos-ui-plasma-mobile/kwinrc | 12 ++++++++++++ main/postmarketos-ui-plasma-mobile/start_plasma.sh | 3 +-- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 main/postmarketos-ui-plasma-mobile/kwinrc diff --git a/main/postmarketos-ui-plasma-mobile/APKBUILD b/main/postmarketos-ui-plasma-mobile/APKBUILD index 48567b2e5..827454e9e 100644 --- a/main/postmarketos-ui-plasma-mobile/APKBUILD +++ b/main/postmarketos-ui-plasma-mobile/APKBUILD @@ -8,15 +8,20 @@ license="GPL3+" # dbus-x11 provides dbus-launch depends="plasma-phone-components dbus dbus-x11 qmltermwidget plasma-settings breeze-icons postmarketos-demos kscreen qt5-qtvirtualkeyboard - plasma-camera elisa pulseaudio pulseaudio-utils consolekit2 kwin" + plasma-camera elisa pulseaudio pulseaudio-utils consolekit2 powerdevil + polkit-kde-agent" makedepends="" install="$pkgname.post-install" subpackages="" -source="start_plasma.sh" +source="start_plasma.sh kwinrc" options="!check" package() { install -D -m644 "$srcdir"/start_plasma.sh \ "$pkgdir"/etc/profile.d/start_plasma.sh + + install -D -m644 "$srcdir"/kwinrc \ + "$pkgdir"/etc/xdg/kwinrc } -sha512sums="c8fc4dbd6e237a17d8b3d5bcad989d2ece0360c9cbbe58776a24f3100cb7981780db1cb25da8ef3733bc4e0c1bb5a0b610b90b74641709d0f404bc26d6faafa0 start_plasma.sh" +sha512sums="535b0378767c4c55974f15314f128b421879606094c681db0f9230552d9da83bedc2ba3143368c973259ba5f7025ccdde38c80c558828e3f53f6c5ae26227fef start_plasma.sh +a95d3bbd1e8051c9b394ad7a26e4beb2d1be8d3c38189819da61fd42b1c7fd3948c4737bc9246eee23eaf5fd9451cd6362fb06442f3d8f967f930d3bcc5cfbe9 kwinrc" diff --git a/main/postmarketos-ui-plasma-mobile/kwinrc b/main/postmarketos-ui-plasma-mobile/kwinrc new file mode 100644 index 000000000..beded5a36 --- /dev/null +++ b/main/postmarketos-ui-plasma-mobile/kwinrc @@ -0,0 +1,12 @@ +[Plugins] +org.kde.phone.multitaskingEnabled=false +kwin4_effect_eyeonscreenEnabled=false +kwin4_effect_windowapertureEnabled=false +blurEnabled=false +contrastEnabled=false + +[Windows] +Placement=Maximizing + +[org.kde.kdecoration2] +NoPlugin=true diff --git a/main/postmarketos-ui-plasma-mobile/start_plasma.sh b/main/postmarketos-ui-plasma-mobile/start_plasma.sh index d77d7ea97..5eb9999d9 100644 --- a/main/postmarketos-ui-plasma-mobile/start_plasma.sh +++ b/main/postmarketos-ui-plasma-mobile/start_plasma.sh @@ -9,8 +9,7 @@ if test -z "${XDG_RUNTIME_DIR}"; then udevadm trigger udevadm settle - console-kit-daemon - dbus-launch + export QML2_IMPORT_PATH=/usr/lib/qt/qml:/usr/lib/qt5/qml sleep 2 ck-launch-session kwin_wayland --drm --xwayland -- plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"