Bug 33163

Summary: connect api calls missing (auth and create fd)
Product: XCB Reporter: bugs.freedesktop.org
Component: LibraryAssignee: xcb mailing list dummy <xcb>
Status: RESOLVED MOVED QA Contact: xcb mailing list dummy <xcb>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description bugs.freedesktop.org 2011-01-15 10:46:04 UTC
currently there is a api for connecting with a xcb_auth_info_t structure but there is no nice api to actually get the structure.

there should be a api like:

xcb_auth_info_t *xcb_get_auth_info(const char *display);
int xcb_create_fd(const char *display);

why: I'm developing a module for ulatencyd that observes the local x server to detect the current program in focus. As the daemon has root privileges, he can't connect to X easily. To obtain the cookie the module needs to fork and drop to the user uid to obtain the cookie and use it with:
xcb_connect_to_display_with_auth_info

As no api is available, i had to copy a lot of xcb code to accomplish this.
Comment 1 GitLab Migration User 2019-02-16 19:41:08 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxcb/issues/21.

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.