mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
Bash
22 lines
1.0 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Outer entry point of the Cutefish Wayland session: it sets up the
|
|
# environment KWin itself needs and then becomes the compositor.
|
|
#
|
|
# XDG_MENU_PREFIX has to be exported before KWin starts. KService only builds
|
|
# its application database (ksycoca) when it finds <prefix>applications.menu,
|
|
# and KWin reads that database to decide which client may bind the restricted
|
|
# Wayland interfaces, org_kde_plasma_window_management among them. Without it
|
|
# the database stays empty, no desktop file is ever found, and the shell gets
|
|
# no window list.
|
|
export XDG_MENU_PREFIX=cutefish-
|
|
export XDG_CURRENT_DESKTOP=Cutefish
|
|
export XDG_SESSION_DESKTOP=Cutefish
|
|
export DESKTOP_SESSION=Cutefish
|
|
|
|
# Keep Xwayland available for legacy X11 session agents such as
|
|
# spice-vdagent. The agent uses X11 selections and cannot connect to the
|
|
# native Wayland display directly; KWin bridges the Xwayland clipboard into
|
|
# the Wayland session.
|
|
exec /usr/bin/kwin_wayland --xwayland --exit-with-session /usr/bin/cutefish-kwin-wayland-session "$@"
|