-
Notifications
You must be signed in to change notification settings - Fork 27
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
[feature] add systemd/dbus service #34
Comments
Personally I prefer just putting it in an autostart file, since I find services a bit opaque/unnecessary for simple stuff. Having said that, I'll concede there are some advantages to having a service, like auto-start on notification send and resilience to crashing, though. Maybe having both is an option. What do you mean by setting up wired as the standard notification daemon? |
At first I had dunst still installed parallel and I believe due to the crashes of #22 systemd kept reawakening dunst. I don't have much experience creating new services, tbh, but I can try and open a pr eventually, if you like. |
Ah, I see what you mean. Yeah, we can/should do something documenting that. A PR would be welcome, but I will also get around to this eventually. |
Not a systemd expert but this works for me.
put this file in enable:
I wasn't able to get it auto starting but I put this in my session start up script.
I would love to see this in the main branch but I can't atm. |
I have various points that should be taken into consideration when adding a systemd service which I'll share in this comment.
This is a good attempt and it looks good overall, but there's one issue with it.
If we want to rely on Xorg, then we probably want to started |
Nice input, thanks.
Wired is completely untested on Wayland and I don't even know what it would take to support it. As far as I understand everything is tied much more closely to the compositor so it wouldn't even be possible to support the same way we do on X11 (?). mako just says "works on sway", whatever that means.
Great point and one of the reasons I haven't pushed for a systemd service so far. The other reason is that I don't really get the point of such a complex start system for a program as simple as Wired. Why over-complicate |
Awesome, and thanks for support.
The hole reson why I wrote the unit file was because, wired was crashing on me, and bluemans notification don't auto close. I can't speak for anyone else but I don't have 8~16h to spend on debugging a foreign code base. Which is why I am so thankful to the open source community and I try to add to as much as I can! So yes! This is a dock-tape solution, but it took me < 2 hours to put together. As for not being able to detected bugs, Systemd devs already thought about it. The solutions is log files which you can access via
Again, thanks for an awesome software! |
It looks like we were facing the same issue, this is a good thing, my
I've been using In summary, I see two independent issues here.
In an attempt to keep focusing on the systemd aspect, is there any way we can trigger wired to start when Xorg is starting? |
Obviously, as the maintainer of Wired I would much prefer to catch bugs ASAP, but I understand that the bandaid approach does have real benefits -- no software is perfect. I'm not totally opposed to providing a service if we get to something workable here. By the way @Luviz, from the screenshot you posted you might be experiencing #22 , which is fixed in master, and will be released soon. @MatanHamilis if your crash is separate, if you could just post the output in a separate issue, ideally a debug build. |
My issue is exactly the same, already tried v0.9.5 too see the crashes are fixed.
…On Sat, Jan 1, 2022, 15:06 Michael Palmos ***@***.***> wrote:
- Crashing is a bad user experience.
- We can bandaid the issue by having a service which restarts the
program.
- This *might* hide the issue from some people, and the issue may be
fixed less quickly.
Obviously, as the maintainer of Wired I would much prefer to catch bugs
ASAP, but I understand that the bandaid approach does have real benefits --
no software is perfect. I'm not totally opposed to providing a service if
we get to something workable here.
------------------------------
By the way @Luviz <https://github.com/Luviz>, from the screenshot you
posted you might be experiencing #22
<#22> , which is fixed in
master, and will be released soon. @MatanHamilis
<https://github.com/MatanHamilis> if your crash is separate, if you could
just post the output in a separate issue, ideally a debug build.
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWSV3MLJ5MH3YGI7OY5ENLUT336TANCNFSM5I5YI2JQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
0.9.5 doesn't exist yet. Do you mean master? |
Cargo.toml on branch master is 0.9.5.
…On Sat, Jan 1, 2022, 15:39 Michael Palmos ***@***.***> wrote:
My issue is exactly the same, already tried v0.9.5 too see the crashes are
fixed.
0.9.5 doesn't exist yet. Do you mean master?
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWSV3OVD57EZJPEBJKTE4DUT3725ANCNFSM5I5YI2JQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have written this unit file with inspiration of the one from [Unit]
Description=Wired Notification Daemon
PartOf=graphical-session.target
[Service]
Type=dbus
BusName=org.freedesktop.Notifications
ExecStart=/usr/bin/wired
[Install]
WantedBy=graphical-session.target I placed it at I think it would be nice to just have such a unit file in the repo, so package maintainers would have a unified source for systemd support. |
Thanks for the service! I've added it to the root of the repository and added a small section on how to use it in the README for now. |
Also thanks for adding! |
it would be nice, for convenient autostart to have systemd and dbus services 'shipped with' wired, similar as dunst has.
Also documentation on how to setup wired as standard notification daemon would be nice.
The text was updated successfully, but these errors were encountered: