Bug 33163 - connect api calls missing (auth and create fd)
Summary: connect api calls missing (auth and create fd)
Status: RESOLVED MOVED
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-15 10:46 UTC by bugs.freedesktop.org
Modified: 2019-02-16 19:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.