File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 pacman -Sy --noconfirm --needed \
2020 chromium \
2121 dolphin \
22+ firefox \
2223 kate \
2324 konsole \
2425 kwin-x11 \
Original file line number Diff line number Diff line change 1919 pacman -Sy --noconfirm --needed \
2020 chromium \
2121 dolphin \
22+ firefox \
2223 kate \
2324 konsole \
2425 kwin-x11 \
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ touch "${HOME}/.local/share/user-places.xbel"
2121# Background perm loop
2222if [ ! -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
4343fi
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 &
4764sleep 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
You can’t perform that action at this time.
0 commit comments