12 lines
670 B
Bash
12 lines
670 B
Bash
export XDG_RUNTIME_DIR=/tmp/xdg-g; rm -rf $XDG_RUNTIME_DIR; mkdir -m 700 -p $XDG_RUNTIME_DIR
|
|
export XDG_CURRENT_DESKTOP=GNOME XDG_SESSION_TYPE=wayland LANG=zh_TW.UTF-8
|
|
unset DISPLAY
|
|
dbus-run-session -- sh -c '
|
|
echo "export DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR WAYLAND_DISPLAY=wayland-0 XDG_CURRENT_DESKTOP=GNOME XDG_SESSION_TYPE=wayland LANG=zh_TW.UTF-8 HOME=/home/t" > /tmp/env.sh
|
|
pipewire >/tmp/pw.log 2>&1 &
|
|
sleep 0.5; wireplumber >/tmp/wp.log 2>&1 &
|
|
gnome-shell --headless --wayland --no-x11 --virtual-monitor 1280x800 >/tmp/shell.log 2>&1 &
|
|
sleep 4
|
|
/usr/libexec/xdg-desktop-portal >/tmp/xdp.log 2>&1 &
|
|
sleep infinity'
|