Skip to content

Commit

Permalink
[RTT-5714] Use launch delay only with Xorg
Browse files Browse the repository at this point in the history
When the delay in ExecStartPre in unit file is used with Wayland
(gnome-kiosk), it makes the gnome-kiosk launcher (run-in-new-session)
fail for some weird reason.

At this point it seems that the delay is not necessary with Wayland
and/or with the newer version of dogtail.
  • Loading branch information
jikortus committed Nov 11, 2024
1 parent ea119ba commit fbb6ec2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion etc/systemd/system/anabot.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ ConditionArchitecture=!s390
ConditionArchitecture=!s390x

[Service]
ExecStartPre=/usr/bin/sleep 30
# Use sleep (to avoid occasional weird dogtail tracebacks) with Xorg only.
# It's actually a workaround - the sleep can't be used here generally, i. e.
# even with Wayland, as gnome-kiosk would fail to start - it's likely a bug in
# the launcher script in Anaconda (run-in-new-session) or gnome-kiosk.
# It seems the delay shouldn't be needed with Wayland (and/or with the new version
# of dogtail). If it turns out it's not the case, we should remove the sleep
# from here and implement it it launcher.py.
ExecStartPre=sh -c "ps aux | grep -q gnome-kiosk || sleep 30"
ExecStart=/opt/python_launcher.sh /opt/launcher.py anaconda_installer
Environment="ANABOT_MODULES=/opt/anabot-modules"
Environment="ANABOT_CONF=/opt/anabot.ini"
Expand Down

0 comments on commit fbb6ec2

Please sign in to comment.