You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/usage.rst
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,10 +79,11 @@ GNU/Linux
79
79
Display
80
80
^^^^^^^
81
81
82
-
On GNU/Linux, the default display is taken from the :envvar:`DISPLAY` environment variable. You can instead specify which display to use (useful for distant screenshots via SSH) using the :keyword:`display` keyword::
82
+
On GNU/Linux, the default display is taken from the :envvar:`DISPLAY` environment variable. You can instead specify which display to use (useful for distant screenshots via SSH) using the ``display`` keyword::
@@ -91,14 +92,18 @@ The GNU/Linux implementation has multiple backends (see :ref:`backends`), or way
91
92
92
93
There are three available backends.
93
94
94
-
:py:mod:`xlib` (default)
95
-
The legacy backend, based on :c:func:`XGetImage`. This backend is not being improved anymore. It is only provided in case the newer backends don't work for some reason.
95
+
:py:mod:`xshmgetimage` (default)
96
+
The fastest backend, based on :c:func:`xcb_shm_get_image`. It is roughly three times faster than :py:mod:`xgetimage`
97
+
and is used automatically. When the MIT-SHM extension is unavailable (for example on remote SSH displays), it
98
+
transparently falls back to :py:mod:`xgetimage` so you can always request it safely.
96
99
97
100
:py:mod:`xgetimage`
98
-
A highly-compatible, but slow, backend, based on :c:func:`xcb_get_image`. This backend is the slowest of the new backends, but works in all situations. You can use this if you know that :py:mod:`xshmgetimage` won't work.
101
+
A highly-compatible, but slower, backend based on :c:func:`xcb_get_image`. Use this explicitly only when you know
102
+
that :py:mod:`xshmgetimage` cannot operate in your environment.
99
103
100
-
:py:mod:`xshmgetimage`
101
-
The fastest backend, based on :c:func:`xcb_shm_get_image`. This backend is the fastest, about three times faster than :py:mod:`xgetimage`. However, it doesn't work for remote screenshots, such as over SSH. If you use it with a remote display, then it will automatically switch to :py:mod:`xgetimage` instead. It's always safe to use this backend.
104
+
:py:mod:`xlib`
105
+
The legacy backend powered by :c:func:`XGetImage`. It is kept solely for systems where XCB libraries are
106
+
unavailable and no new features are being added to it.
0 commit comments