Skip to content
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

没有按规范解析 DBUS_SESSION_BUS_ADDRESS 的值 #745

Open
myml opened this issue Oct 11, 2024 · 2 comments
Open

没有按规范解析 DBUS_SESSION_BUS_ADDRESS 的值 #745

myml opened this issue Oct 11, 2024 · 2 comments

Comments

@myml
Copy link
Collaborator

myml commented Oct 11, 2024

目前仅对 DBUS_SESSION_BUS_ADDRESS 做了前缀切割,但 DBUS_SESSION_BUS_ADDRESS 实际可以有这种格式 unix:path=/tmp/dbus-iFtwFmFWJl,guid=bc8dc7c98c6f89a6ac5b295c6708d88b

这会导致dbus映射出错,玲珑应用无法连接到dbus

@black-desk
Copy link
Collaborator

auto sessionBus = std::string_view{ sessionBusEnv };
auto suffix = std::string_view{ "unix:path=" };
if (sessionBus.rfind(suffix, 0) != 0U) {
std::cerr << "Unexpected DBUS_SESSION_BUS_ADDRESS=" << sessionBus << std::endl;
return;
}

@myml
Copy link
Collaborator Author

myml commented Dec 18, 2024

先解决了一部分问题 #925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants