File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ LABEL maintainer="thelamer"
1010
1111# title
1212ENV TITLE="Kali Linux" \
13- NO_GAMEPAD=true
13+ NO_GAMEPAD=true \
14+ SELKIES_WAYLAND_SOCKET_INDEX=1
1415
1516RUN \
1617 echo "**** add icon ****" && \
5657 sed -i \
5758 's/applications:org.kde.discover.desktop,/applications:org.kde.konsole.desktop,/g' \
5859 /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml && \
60+ setcap -r \
61+ /usr/bin/kwin_wayland && \
62+ rm -f \
63+ /usr/bin/wl-paste \
64+ /usr/bin/wl-copy && \
65+ echo "#! /bin/bash" > \
66+ /tmp/wl-paste && \
67+ echo "#! /bin/bash" > \
68+ /tmp/wl-copy && \
69+ chmod +x /tmp/wl-* && \
70+ cp /tmp/wl-* /usr/bin/ && \
5971 echo "**** cleanup ****" && \
6072 apt-get autoclean && \
6173 rm -rf \
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ LABEL maintainer="thelamer"
1010
1111# title
1212ENV TITLE="Kali Linux" \
13- NO_GAMEPAD=true
13+ NO_GAMEPAD=true \
14+ SELKIES_WAYLAND_SOCKET_INDEX=1
1415
1516RUN \
1617 echo "**** add icon ****" && \
5657 sed -i \
5758 's/applications:org.kde.discover.desktop,/applications:org.kde.konsole.desktop,/g' \
5859 /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml && \
60+ setcap -r \
61+ /usr/bin/kwin_wayland && \
62+ rm -f \
63+ /usr/bin/wl-paste \
64+ /usr/bin/wl-copy && \
65+ echo "#! /bin/bash" > \
66+ /tmp/wl-paste && \
67+ echo "#! /bin/bash" > \
68+ /tmp/wl-copy && \
69+ chmod +x /tmp/wl-* && \
70+ cp /tmp/wl-* /usr/bin/ && \
5971 echo "**** cleanup ****" && \
6072 apt-get autoclean && \
6173 rm -rf \
Original file line number Diff line number Diff line change @@ -48,15 +48,21 @@ sudo mv \
4848 /etc/xdg/menus/applications.menu
4949kbuildsycoca6
5050
51- # Wayland Hacks
51+ # Export variables globally so all children inherit them
52+ export QT_QPA_PLATFORM=wayland
53+ export XDG_CURRENT_DESKTOP=KDE
54+ export XDG_SESSION_TYPE=wayland
55+ export KDE_SESSION_VERSION=6
5256unset DISPLAY
53- sudo setcap -r /usr/bin/kwin_wayland
54- sudo rm -f /usr/bin/wl-paste /usr/bin/wl-copy
55- echo " #! /bin/bash" > /tmp/wl-paste && chmod +x /tmp/wl-paste
56- echo " #! /bin/bash" > /tmp/wl-copy && chmod +x /tmp/wl-copy
57- sudo cp /tmp/wl-* /usr/bin/
58-
59- # Start DE
60- WAYLAND_DISPLAY=wayland-1 dbus-run-session kwin_wayland &
61- sleep 2
62- WAYLAND_DISPLAY=wayland-0 exec dbus-run-session /usr/bin/plasmashell > /dev/null 2>&1
57+ dbus-run-session bash -c '
58+ WAYLAND_DISPLAY=wayland-1 kwin_wayland --no-lockscreen &
59+ KWIN_PID=$!
60+ sleep 2
61+ if [ -f /usr/lib/libexec/polkit-kde-authentication-agent-1 ]; then
62+ /usr/lib/libexec/polkit-kde-authentication-agent-1 &
63+ elif [ -f /usr/libexec/polkit-kde-authentication-agent-1 ]; then
64+ /usr/libexec/polkit-kde-authentication-agent-1
65+ fi
66+ WAYLAND_DISPLAY=wayland-0 plasmashell
67+ kill $KWIN_PID
68+ ' > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments