Summary: | dbus_connection_get_unix_user fails | ||
---|---|---|---|
Product: | dbus | Reporter: | frederic heem <frederic.heem> |
Component: | core | Assignee: | Havoc Pennington <hp> |
Status: | RESOLVED NOTABUG | QA Contact: | John (J5) Palmieri <johnp> |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
frederic heem
2006-09-21 08:38:53 UTC
Are you calling DBusConnection methods on a DBusGConnection? dbus_g_connection_get_connection is used to convert DBusGConnection to DBusConnection. Hence, dbus_connection_get_unix_user gets the correct connection. closing There is a misunderstanding, dbus_connection_get_unix_user gets the correct connection but fails. Actually, I cannot any unit test case for dbus_connection_get_unix_user in dbus. are you using a tcp connection, or on windows? it won't work in either of those cases. Neither tcp nor windows is used Do you have a test case you can attach? What version of D-Bus are you using and on what distribution? BTW Sorry about closing the bug. I thought you said you used the get_connection API and get_unix_user worked. dbus 0.93, dbus-glib-0.73, fedora core 5 For the test case, just call dbus_connection_get_unix_user inside a call back that are called by the glib binding Attaching a test case would be nice because of time constraints and we would be sure that it fails on your machine. The easiest way would be to add a permanent test case in test-dbus-glib.c As it turns out the code in question was trying to get the unix user from a connection which was opened by the app. You can only get the unix user off of connections passed to a server. I am not sure if the glib bindings can do this yet. The best place to ask is on the mailing list |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.