xinitrc.patch 506 B

12345678910111213141516171819
  1. --- a/scripts/xinitrc.in.in 2019-10-16 17:00:56.364000642 +0300
  2. +++ b/scripts/xinitrc.in.in 2019-10-16 17:03:41.612001128 +0300
  3. @@ -98,8 +98,13 @@
  4. exit 1
  5. fi
  6. else
  7. - # start xfce4-session normally
  8. - exec xfce4-session
  9. + if [[ "$(pgrep -fu root 'autolaunch')" ]]; then
  10. + # start xfce4-session normally
  11. + exec xfce4-session
  12. + else
  13. + # hack for run session from sddm
  14. + exec dbus-launch --sh-syntax --exit-with-session xfce4-session
  15. + fi
  16. fi
  17. # if we got here, then exec failed