Skip to content

feat: wl-clipboard-wsl#970

Open
karaolidis wants to merge 1 commit intonix-community:mainfrom
karaolidis:wl-clipboard-wsl
Open

feat: wl-clipboard-wsl#970
karaolidis wants to merge 1 commit intonix-community:mainfrom
karaolidis:wl-clipboard-wsl

Conversation

@karaolidis
Copy link
Contributor

Resolves #700.

@karaolidis karaolidis force-pushed the wl-clipboard-wsl branch 2 times, most recently from 7fba9c9 to 705635a Compare February 1, 2026 12:54
@SymphonySimper
Copy link

Hello! could you replace powershell.exe and clip.exe with their absolute paths? The current implementation won't work if wsl.wslConf.interop.appendWindowsPath is set to false. I have personally disabled this in my machine, as it slows down the PATH lookups.

  • powershell.exe -> /mnt/c/windows/system32/windowspowershell/v1.0/powershell.exe
  • clip.exe -> /mnt/c/windows/system32/clip.exe

Signed-off-by: Nikolaos Karaolidis <[email protected]>

Co-authored-by: ljxfstorm <[email protected]>
Signed-off-by: Nick Karaolidis <[email protected]>
'';

wl-paste = pkgs.writeShellScriptBin "wl-paste" ''
/mnt/c/windows/system32/windowspowershell/v1.0/powershell.exe -command Get-Clipboard | ${pkgs.dos2unix}/bin/dos2unix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While hard-coding the paths solves that it won't work if wsl.interop.includePath is false, this version will not work if wsl.wslConf.automount.root is changed. At least in the past, it was also possible for%WINDIR% to be something other than C:\Windows, but I'm not sure if that is still supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

windows compatible wl-copy

4 participants