-
Notifications
You must be signed in to change notification settings - Fork 30
Empty options get reverted to default #15
Copy link
Copy link
Closed
Description
Using Clipper with Windows Subsystem for Linux (Bash for Windows) requires an executable value of /mnt/c/Windows/System32/clip.exe and no flags.
WSL reports as Linux, and gets the default flag of -selection clipboard. When providing an empty flag -f via config or cli, the empty value gets reverted back to the default by https://github.com/wincent/clipper/blob/master/clipper.go#L188.
On my local version, Clipper works correctly in this environment when the else branch of that condition is removed. Is there a reason for normalizing empty options?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels