Skip to content

Commit 2b8f88f

Browse files
committed
add true wayland init to arch-kde
1 parent d982ad9 commit 2b8f88f

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN \
1919
pacman -Sy --noconfirm --needed \
2020
chromium \
2121
dolphin \
22+
firefox \
2223
kate \
2324
konsole \
2425
kwin-x11 \

Dockerfile.aarch64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN \
1919
pacman -Sy --noconfirm --needed \
2020
chromium \
2121
dolphin \
22+
firefox \
2223
kate \
2324
konsole \
2425
kwin-x11 \

root/defaults/startwm_wayland.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ touch "${HOME}/.local/share/user-places.xbel"
2121
# Background perm loop
2222
if [ ! -d $HOME/.config/kde.org ]; then
2323
(
24-
loop_end_time=$((SECONDS + 30))
24+
loop_end_time=$((SECONDS + 60))
2525
while [ $SECONDS -lt $loop_end_time ]; do
2626
find "$HOME/.cache" "$HOME/.config" "$HOME/.local" -type f -perm 000 -exec chmod 644 {} + 2>/dev/null
2727
sleep .1
@@ -42,7 +42,24 @@ if [ ! -f "${STARTUP_FILE}" ]; then
4242
chmod +x $STARTUP_FILE
4343
fi
4444

45+
# Setup application DB
46+
sudo mv \
47+
/etc/xdg/menus/plasma-applications.menu \
48+
/etc/xdg/menus/applications.menu
49+
kbuildsycoca6
50+
51+
# Wayland Hacks
52+
unset DISPLAY
53+
sudo setcap -r /usr/sbin/kwin_wayland
54+
sudo rm -f /usr/sbin/wl-paste /usr/sbin/wl-copy
55+
echo "#! /bin/bash" > /tmp/wl-paste && chmod +x /tmp/wl-paste
56+
echo "exit 0" > /tmp/wl-copy && chmod +x /tmp/wl-copy
57+
sudo cp /tmp/wl-* /usr/sbin/
58+
if ! grep -q "ozone-platform" /usr/local/bin/wrapped-chromium > /dev/null 2>&1; then
59+
sudo sed -i 's/--password/--ozone-platform=wayland --password/g' /usr/local/bin/wrapped-chromium
60+
fi
61+
4562
# Start DE
46-
WAYLAND_DISPLAY=wayland-1 Xwayland :1 &
63+
WAYLAND_DISPLAY=wayland-1 dbus-run-session kwin_wayland &
4764
sleep 2
48-
exec dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1
65+
WAYLAND_DISPLAY=wayland-0 exec dbus-run-session /usr/bin/plasmashell > /dev/null 2>&1

0 commit comments

Comments
 (0)