#!/bin/sh # Import environemnt to systemd user session systemctl --user import-environment DISPLAY XAUTHORITY PATH XDG_SESSION_ID # Run graphical-session.target systemctl --user start --wait xorg.target