This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/evolution-desktop/files/bin/startsession

27 lines
594 B
Bash
Executable File

#!/bin/bash
# Session config
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=wayfire
export XDG_CURRENT_DESKTOP=wayfire
# Wayland config
export MOZ_ENABLE_WAYLAND=1
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
# Wayfire specific stuff
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
CLUTTER_BACKEND=gdk
pidof wayfire &>/dev/null
if [ "$?" = "0" ]; then
killall wayfire
fi
if [ "$1" = "" ]; then
dbus-run-session wayfire &>/dev/null
else
dbus-run-session $* &>/dev/null
fi