# linux\(x11\): Add support for pasting images from clipboard \(\#29387\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ef33666701d54c85270c6633243f2f92c206d091)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ef33666701d54c85270c6633243f2f92c206d091

Requested commit: ef33666701d54c85270c6633243f2f92c206d091

Commit: ef33666701d54c85270c6633243f2f92c206d091

Tree: 9d817970e75808e16b96f9bd1c8507f83d76ad96

Author: Ben Kunkle

Committer: GitHub

## Message

```
linux(x11): Add support for pasting images from clipboard (#29387)

Closes:
https://github.com/zed-industries/zed/pull/29177#issuecomment-2823359242

Removes dependency on
[quininer/x11-clipboard](https://github.com/quininer/x11-clipboard) as
it is in [maintenance
mode](https://github.com/quininer/x11-clipboard/issues/19).

X11 clipboard functionality is now built-in to GPUI which was
accomplished by stripping the non-x11-related code/abstractions from
[1Password/arboard](https://github.com/1Password/arboard) and extending
it to support all image formats already supported by GPUI on wayland and
macos.

A benefit of switching over to the `arboard` implementation, is that we
now make an attempt to have an X11 "clipboard manager" (if available -
something the user has to setup themselves) save the contents of
clipboard (if the last copy operation was within Zed) so that the copied
contents can still be pasted once Zed has completely stopped.

Release Notes:

- Linux(X11): Add support for pasting images from clipboard
```

## Parents

- [cd86905ebe9bcdbaffa7231dd99dc2fda559e61e](https://git.cafe/gitcafe/zed/commit/cd86905ebe9bcdbaffa7231dd99dc2fda559e61e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ef33666701d54c85270c6633243f2f92c206d091?format=markdown)
