ponty / PyVirtualDisplay

Python wrapper for Xvfb, Xephyr and Xvnc
BSD 2-Clause "Simplified" License
709 stars 78 forks source link

add the ability to generate Xauthority files #17

Closed Kingdread closed 7 years ago

Kingdread commented 8 years ago

Some programs need a Xauthority file present, which is not automatically generated by Xvfb or Xephyr. This patch adds this ability with the use_xauth parameter. If this parameter is True, PyVirtualDisplay will generate a Xauthority file for the display and it will set the right environment variables.

If xauth is not installed when use_xauth=True is given, a pyvirtualdisplay.xauth.NotFoundError is raised.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.5%) to 93.487% when pulling 7ee6fc67d904162ca66b7c0747cf54be9a06f592 on Kingdread:xauth into 9e9d1cd7fe41b8e40a9f10c8854fb400ae9759b8 on ponty:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.5%) to 93.487% when pulling 2f697bdba37fc2ddfff8285de7d2fc219ba94a17 on Kingdread:xauth into 9e9d1cd7fe41b8e40a9f10c8854fb400ae9759b8 on ponty:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.5%) to 93.487% when pulling 2f697bdba37fc2ddfff8285de7d2fc219ba94a17 on Kingdread:xauth into 9e9d1cd7fe41b8e40a9f10c8854fb400ae9759b8 on ponty:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.5%) to 93.487% when pulling 2f697bdba37fc2ddfff8285de7d2fc219ba94a17 on Kingdread:xauth into 9e9d1cd7fe41b8e40a9f10c8854fb400ae9759b8 on ponty:master.

The-Compiler commented 7 years ago

Yay, thanks for the merge! Are there plans for a release including this anytime soon? :wink:

ponty commented 7 years ago

I can make a new release today if you need it.

The-Compiler commented 7 years ago

That'd be awesome, at least if @Kingdread still feels like working on https://github.com/The-Compiler/pytest-xvfb/issues/4 for https://github.com/The-Compiler/qutebrowser/pull/1844 :wink: