You are not logged in.

#1 2017-09-19 22:58:12

tedrogers
Member
From: UK
Registered: 2017-09-06
Posts: 36

How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Hi all,

I notice that the OB pipe-menu system already has Dropbox integration to an extent, but I'd like to be able to right-click on a file and 'Send to Dropbox'. I don't really mind if it simply goes to the root folder of Dropbox, but it would be brilliant if I could also specify exactly where to send it within my Dropbox file structure.

Is this something that is possible to create manually with some clever Bunsen-fu? wink

I'd be very grateful if someone knowledgeable could assist with this.

Thanks.

Last edited by tedrogers (2017-09-20 18:34:25)

Offline

#2 2017-09-20 06:26:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

I think this is the guide you want:

http://docs.xfce.org/xfce/thunar/custom-actions

Offline

#3 2017-09-20 14:57:55

tedrogers
Member
From: UK
Registered: 2017-09-06
Posts: 36

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Head_on_a_Stick wrote:

I think this is the guide you want:

http://docs.xfce.org/xfce/thunar/custom-actions

Brilliant! Cheers for that link.

For anyone else:

1. Open Thunar and then EDIT > CONFIGURE CUSTOM ACTIONS.
2. Add a new item. I called it Send to Dropbox etc.
3. For the command I set:

cp -r %f /home/<username>/Dropbox

4. In 'Appearance Conditions' tab I simply selected everything possible.
5. Choose an icon if you want to, although it's not vital.

In images:

Custom Actions
Edit Action
Appearance Conditions
Resulting Right-Click Dialogue

Hope this helps someone else.

Thanks.

Last edited by tedrogers (2017-09-20 15:58:17)

Offline

#4 2017-09-20 17:48:56

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Excellent, thanks for filling in the details for us smile

Offline

#5 2017-09-21 00:17:21

tedrogers
Member
From: UK
Registered: 2017-09-06
Posts: 36

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Head_on_a_Stick wrote:

Excellent, thanks for filling in the details for us smile

Thanks for saying so. Happy to give something back when I can. smile

Offline

#6 2017-09-23 02:45:43

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Just for the record:

Thunar also has a "send-to" right-click menu item. You can add items to this by putting .desktop files in ~/.local/share/Thunar/sendto/ The usual way to use this is to copy in application.desktop files from /usr/share/applications, which can be useful if there's a "second-choice" app that you often want to open files with. You can also write your own custom files to do arbitary actions.
For example, I have this one to send a file to my "documents" directory:

[Desktop Entry]
Version=1.0
Name=Documents
Exec=mv -t /home/john/documents %F
Icon=system-file-manager
Type=Application

Like custom actions, the 'mv' could be a 'cp' or anything you want. Like other .desktop files you can add a MimeType= line and the entry will only appear if the file matches those mime-types.
This is all very similar to the Custom Actions method, and I don't know if it has any particular advantage, other than hiding the entry away in the "Send To" submenu...

Last edited by johnraff (2017-09-23 02:55:22)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#7 2017-09-23 03:46:08

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

^ That is nice.

Offline

#8 2017-09-23 08:15:25

tedrogers
Member
From: UK
Registered: 2017-09-06
Posts: 36

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

johnraff wrote:

I don't know if it has any particular advantage, other than hiding the entry away in the "Send To" submenu...

Thanks for this. You're right about what you say...it's one extra click away in the "Send To" submenu, which is a possible disadvantage, albeit extremely minor. Matter of taste I guess.

Last edited by tedrogers (2017-09-23 08:16:16)

Offline

#9 2017-09-23 08:51:45

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

^OTOH you might want entries you seldom use hidden away in a sub-menu.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#10 2017-09-24 17:23:10

MsMattie
Member
Registered: 2015-09-29
Posts: 99

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

Would all of this also work for other clouds, like GoogleDrive, OneDrive, Box.net and Mega.com?


...
Linux in the backwoods of the Rocky Mountains...

Offline

#11 2017-09-24 18:30:57

tedrogers
Member
From: UK
Registered: 2017-09-06
Posts: 36

Re: How do I create a 'Send to Dropbox' option in right-click menu? SOLVED

MsMattie wrote:

Would all of this also work for other clouds, like GoogleDrive, OneDrive, Box.net and Mega.com?

It should work for any application you can call from the terminal.

Offline

Board footer

Powered by FluxBB