Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd service: fix start up ordering #612

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

gdamjan
Copy link
Contributor

@gdamjan gdamjan commented Mar 3, 2020

the service needs to have After=wayland-session.target otherwise it'll
be started in parallel to the compositor which might not be fully
configured.

ps. sorry I overlooked this setting when I was sending the previous pull request.

@gdamjan gdamjan changed the title systemd service: fix ordering systemd service: fix start up ordering Mar 3, 2020
the service needs to have After=wayland-session.target otherwise it'll
be started in parallel to the compositor which might not be fully
configured
@Alexays
Copy link
Owner

Alexays commented Mar 4, 2020

Thanks!

@Alexays Alexays merged commit 6c27af3 into Alexays:master Mar 4, 2020
@freed00m
Copy link

freed00m commented Jun 4, 2020

Where is the wayland-session.target coming from, who provides it?

Only what I have is graphical-session.target

Edit: I still cannot figure it how to make it start after sway.service (I've even created a --user sway-session.target)

This is my current waybar unit that not work, will update when I'll find solution.

[Unit]
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
Documentation=https://github.com/Alexays/Waybar/wiki/
#BindsTo=sway-session.target
Requires=graphical-session.target
PartOf=graphical-session.target

[Service]
Type=simple
# 2 second should be enough after login
#ExecStartPre=sleep 2 
ExecStart=/usr/bin/bash -c "export SWAYSOCK=/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock && /usr/bin/waybar"

[Install]
WantedBy=sway-session.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants