Don't install xclip or xsel in WSL
Newer WSL2 has issues with `xclip`/`xsel` behaviour which cause Windows GUI's to freeze waiting for input from an already exited process. Switching to `win32yank.exe` for clipboard integrations.
This commit is contained in:
@@ -3,6 +3,21 @@
|
||||
pacman:
|
||||
name:
|
||||
- tmux
|
||||
- xclip
|
||||
- urlscan
|
||||
state: latest
|
||||
|
||||
- name: install pacman package
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
become: true
|
||||
pacman:
|
||||
name: xsel
|
||||
state: latest
|
||||
|
||||
- name: remove pacman package
|
||||
when: '"WSL" in ansible_kernel'
|
||||
become: true
|
||||
pacman:
|
||||
name:
|
||||
- xclip
|
||||
- xsel
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user