diff --git a/kittens/dnd/main.go b/kittens/dnd/main.go index 3e42a3630..213f04f28 100644 --- a/kittens/dnd/main.go +++ b/kittens/dnd/main.go @@ -139,7 +139,12 @@ func (dnd *dnd) run_loop() (err error) { debugprintln("dnd kitten exiting with error: ", err) } }() - base_dir, err := os.Getwd() + base_dir := dnd.opts.DropDest + if base_dir == "" { + base_dir, err = os.Getwd() + } else { + base_dir, err = filepath.Abs(base_dir) + } if err != nil { return err } diff --git a/kittens/dnd/main.py b/kittens/dnd/main.py index fcb8dd0a3..b0840298a 100644 --- a/kittens/dnd/main.py +++ b/kittens/dnd/main.py @@ -20,6 +20,10 @@ it will prevent that MIME type being dropped, useful to disable accepting text/p text/uri-list. +--drop-dest +Path to the directory in which dropped data is saved. Defaults to the current working directory. + + --confirm-drop-overwrite type=bool-set Ask for confirmation when dropping text/uri-list data if the drop will cause any existing