specify end of flags for xdotool
We don't want passwords starting with a dash to be interpreted as xdotool arguments
@@ -84,7 +84,7 @@ func (s *Action) CompletionDMenu(c *cli.Context) error {
}
if typeit {
- return exec.Command("xdotool", "type", "--clearmodifiers", string(content)).Run()
+ return exec.Command("xdotool", "type", "--clearmodifiers", "--", string(content)).Run()
}
return s.copyToClipboard(name, content)
