xclip gtk copy file

566 Views Asked by At

While trying to copy files into the clipboard through bash, I ran into a bit of trouble. I'm currently using 'xclip -i -selection clipboard -t text/uri-list <<< $1' . The script works as expected in QT apps, but gtk doesn't seem to recognize the files/folders copied.

Am I using the wrong mimetype ('text/uri-list'), or should the files not be in the format "file://path/to/file.extension" or is it something else?

0

There are 0 best solutions below