dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

Incompatible home directory on win32 #292

Closed zeenix closed 1 year ago

zeenix commented 1 year ago

In GitLab by @elmarco on Oct 17, 2022, 13:46

GLib uses $HOME with higher priority, even on win32.

Unfortunately, that's not what the home_dir crate does (since addition in commit 0c253daaf5e54), resulting in incompatible keyring lookups.

zeenix commented 1 year ago

Hmm.. but which one is more correct? Seems like an issue in either glib or home_dir but I'd be fine to workaround it for windows.

zeenix commented 1 year ago

In GitLab by @elmarco on Oct 17, 2022, 14:51

Well, the DBus specification isn't saying much about home directory lookup. The dbus reference implementation uses $HOME first for current user (before looking up /etc/passwd etc).

And the XDG "XDG Base Directory Specification" doesn't say much about $HOME lookup priority either.

But it seems quite obvious the environment should come first though.

home_dir doesn't really have to be XDG compliant afaict

zeenix commented 1 year ago

home_dir doesn't really have to be XDG compliant afaict

It doesn't but wouldn't hurt to file an issue (unless this was already discussed).

zeenix commented 1 year ago

@elmarco wasn't this fixed by !576