Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Kumar committed May 22, 2024
1 parent 8f792d5 commit 19a5641
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# {{ template "scripts-library" }}

# The following line is for ShellCheck to correctly identify the above include
true || source ../.chezmoitemplates/scripts-library

log_task "Temporary wl-copy (wl-clipboard) workaround"
systemctl --user enable symlink-wayland-socket.service
12 changes: 12 additions & 0 deletions home/dot_config/systemd/user/symlink-wayland-socket.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://github.com/microsoft/WSL/issues/11261

[Unit]
Description=Symlink Wayland socket to XDG_RUNTIME_DIR

[Service]
Type=oneshot
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0 $XDG_RUNTIME_DIR
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0.lock $XDG_RUNTIME_DIR

[Install]
WantedBy=default.target

0 comments on commit 19a5641

Please sign in to comment.