Skip to content

[Bug]: Error: connect to session bus #25

Description

@DevWizard13

Tested versions

I tested both the current dev branch (aea5b57) and the current main branch (aea5b57). This error is reproducible across both of them.

As a note, I am aware that there is another issue surrounding support for other init systems #5 . In this issue, you said to simply install it manually. However, I did that and I still got this problem.

Environment

I recently switched to Artix with s6, a non-systemd distro (which I think is the issue). The dbus is running.

I'm running the (mostly) recommended environment (Wayland+gtk4+niri), as usual. That shouldn't be the problem.

Issue description

I think the fundamental problem here is that I'm running a non-systemd distro, specifically Artix with s6 (recently switched, and it boots nearly instantly). The dbus is running, but UnixNotis doesn't recognize it (and yes, I verified the dbus if running). It should be able to connect to the dbus regardless of if systemd is running. I had to manually install it due to lack of installer support for non-systemd distros.

Steps to reproduce

Try to install it on a non-systemd distro.

Expected behavior

It should find the dbus and connect.

Logs or terminal output

[devwizard@artixlinux UnixNotis]$ cargo run -p unixnotis-daemon
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/unixnotis-daemon`
2026-06-24T18:41:12.260378Z  INFO unixnotis_daemon: configuration loaded config_source="default"
Error: connect to session bus

Caused by:
    0: I/O error: No such file or directory (os error 2)
    1: No such file or directory (os error 2)
[devwizard@artixlinux UnixNotis]$

CSS check output

The bug does not include styling related issues.

Checks

  • I searched existing issues before opening this report
  • I included enough detail for someone else to try to reproduce the issue
  • I tested this on the current master branch or the latest release available to me, or explained why I could not

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions