-
Notifications
You must be signed in to change notification settings - Fork 18
Fix incorrect wayland session detection faq #64
base: master
Are you sure you want to change the base?
Fix incorrect wayland session detection faq #64
Conversation
@@ -226,7 +226,8 @@ | |||
Add this block below the first 2 lines of the file, then save and exit | |||
<codeblock class="mt-2" language="ini"> | |||
[Service] | |||
Environment=WAYLAND_DISPLAY=:0 | |||
ExecStart= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this empty extra ExecStart
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The empty ExecStart is to clear the value. Otherwise when you run it, it will run both the default start command and the custom one which makes it throw an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's pretty weird behavior, makes me wonder if that's what it's supposed to do.
Should probably change it to Not sure if doing the same for invoking |
Ideally OTD should detect the socket by itself. My issue with this PR is that it assumes that every user-unit in systemd inherits the user environment. |
Also could stick with the original method of doing it but telling users to run |
Changed to use |
Wouldn't they have to do this again if the socket changes though? The reason I'm making this pr is because I originally had mine set to wayland-0 then my pc changed it to wayland-1 at some point so the config broke. |
#43 ? |
This was probably due to wlroots switching from wayland-0 to wayland-1 assuming you're on a wlroots-based compositor |
Yeah the graphical-session dependency seems like a better long term solution than my thing. |
Marked as draft due to a potentially better solution. |
The current suggested fix doesn't work as I believe
:0
is a X11 thing. For wayland it should bewayland-0
(or a number other than 0).I've used
ExecStart
instead ofEnvironment
because that's the only way to get systemd to expand the variable.