Installing requirement
You have to install an application called "xclip" that can be installed by typing the following command:
- sudo apt-get install xclip
Downloading script
Download the script called "dropbox.py" here and place in "/usr/bin". Once downloaded and placed well, please type the following command to make it executable:
- sudo chmod +x /usr/bin/dropbox.py
Setting Up Thunar File Manager
Now, you have to add custom action in Thunar File Manager which will get the public url using dropbox.py and then copy it to the clipboard using xclip:
- In the Thunar menu, go to Edit/Configure Custom Actions...
- Press the uppermost button in the left (the + button).
- In the dialog which appears, fill the following entries: Name: Copy Dropbox public URL Command:
- In the Appearance Conditions conditions page, mark every checkbox but the Directories one.
- Accept, and then close
bash -c "dropbox.py puburl %n | xclip -i -selection clipboard"
Now, you can copy Dropbox Public URL from Thunar's context menu as shown in the first picture above.
0 comments:
Post a Comment