[Xcb] [Bug 33163] New: connect api calls missing (auth and create fd)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 15 10:46:04 PST 2011


           Summary: connect api calls missing (auth and create fd)
           Product: XCB
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: bugs.freedesktop.org at poelzi.org
         QAContact: xcb at lists.freedesktop.org

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:

As no api is available, i had to copy a lot of xcb code to accomplish this.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the Xcb mailing list