Date: Tue, 12 Sep 2023 01:08:06 +0000 From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [Bug 273237] devel/dbus: /var/local/lib/dbus/machine-id not created Message-ID: <bug-273237-39348-WRSmBIrfR7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-273237-39348@https.bugs.freebsd.org/bugzilla/> References: <bug-273237-39348@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273237 Jan Beich <jbeich@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed Flags|maintainer-feedback?(deskto | |p@FreeBSD.org) | --- Comment #6 from Jan Beich <jbeich@FreeBSD.org> --- Because this is a duplicate of bug 257977 (port desync with upstream) that accidentally got reverted. I didn't notice when testing inside jail due to passing through X11/Wayland/DBus/etc sockets. DBus launches 2 daemons one as root for "system bus" (e.g., used for battery status) and one as regular/current user for "session bus" (e.g., used for desktop notifications). The former is handled by rc.d and the latter is auto-launched by client library (glib in this case). However, auto-launch support is fragile and not used on Linux which supports user services manag= ed by systemd-logind or dinit+turnstile. Until FreeBSD improves rc.d or login(= 1) one can start session bus via shell startup e.g., $ cat /etc/profile.d/dbus.sh # WARNING: zsh only reads /etc/zprofile, so make sure to "source" # XDG_RUNTIME_DIR is preferred but usually requires pam_xdg or consolekit2 (pam_ck_connector or ck_launch_session) if [ -n "$XDG_RUNTIME_DIR" ]; then if ! pgrep -qf -U ${USER:-$(id -u)} dbus.\*--session; then dbus-daemon --session --fork --address=3Dunix:runtime=3Dyes 2>/= dev/null fi # Only necessary for some apps that fail to find default session bus (e.g., Emacs, Chrome) # https://gitlab.freedesktop.org/dbus/dbus/-/commit/e3f117e7610b export DBUS_SESSION_BUS_ADDRESS=3Dunix:path=3D$XDG_RUNTIME_DIR/bus else eval $(dbus-launch --sh-syntax --exit-with-session 2>/dev/null) fi --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273237-39348-WRSmBIrfR7>