Skip to content

Possible session-environment issue when starting Wayfire from a TTY #3119

Description

@birdie-github

I'm running Wayfire 0.11 on Fedora 44, started directly from a TTY rather than through a graphical display manager.

I ran into an issue with applications activated through the user's D-Bus session. For example, blueman-applet works and its StatusNotifierItem appears in wf-panel, but activating blueman-manager from the tray fails with:

GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected

After some debugging, I found that in a fresh Wayfire session:

$ echo "$WAYLAND_DISPLAY"
wayland-1

$ systemctl --user show-environment | grep WAYLAND_DISPLAY
# nothing

and the D-Bus activation environment likewise does not contain WAYLAND_DISPLAY.

Running:

dbus-update-activation-environment --systemd \
    WAYLAND_DISPLAY DISPLAY XAUTHORITY

immediately fixes the problem; blueman-manager can then be activated normally from the tray.

I noticed that Wayfire's example configuration already contains this command, so perhaps this is expected when launching Wayfire directly from a TTY.

I'm mainly wondering whether this is considered normal session setup, or whether Wayfire should perhaps establish/import the graphical session environment automatically when started from a TTY. I'm not very familiar with the intended Wayland/systemd/D-Bus session model, so I wanted to ask before assuming this is a Wayfire bug.

Environment: Fedora 44, Wayfire 0.11. No graphical login manager. Started from a TTY.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions