xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Ticket #1631


Ignore:
Timestamp:
09/02/17 18:36:29 (3 years ago)
Author:
Antoine Martin
Comment:

Done in r16777:

  • we hijack the "version" attribute of the uinput device to pass the uid to our custom udev program which tells udev which "OWNER" value to use for the new device. That way, the permissions are correct as soon as the device is created.
  • we also append a random string to the device name to ensure that the same user can run multiple sessions: each device will only be used by the server that knows its full name. We save the name as a root X11 property so we can re-create a new device when doing a server upgrade (or with --use-display).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1631

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #1631 – Description

    initial v1  
    44
    55The patch attached almost kinda works, with some problems:
    6 * requires "xprop" to find the device uuid... is ugly
     6* requires "xprop" to find the device uuid... ugly
    77* the part of the patch that uses the device name to match the device cannot be used, as udev doesn't understand regex in the ATTRS match section... so we'll need to use something else (the device part of the USBID?)
    88* we chmod the device to 0666 initially so that the existing X11 server can add the new device, that's dangerous - we need to chmod / chown it to the user the server belongs to