I'm trying to create a
.contract file for
pantheon-files that will produce a shareable link for a file/folder within my Dropbox.
So far, I have this:
[Contractor Entry] Name=Share Dropbox link Description=Obtain the url for sharing the file/folder with Dropbox MimeType=application Exec=dropbox sharelink %F | xclip -sel clip
but it does not work.
dropbox sharelink %F | xclip -sel clip works properly when used in terminal (replacing
%F with the name of a file or folder). It will generate the share link, and copy it to the clipboard.
What am I missing and/or doing wrong?
Also, is it possible to add perhaps a system message showing "The link was generated and copied to clipboard" if the command is successful, and some kind of "Error" if it is not?
There is not much info on
.contract files that I know of.