Synergy

Feature #46 - Support for file copy (and drag and drop) between computers

Status:
Accepted
Priority:
Normal
Assignee:
None
Category:
None
Target:
None
Created by:
Created on:
23 Apr 2009
Updated by:
Updated on:
18 Nov 2012 18:32
Platform:
Various
gc-37
Redmine ID:
47

• Duplicated by: Feature #407 - Copy/Paste works with files
• Duplicated by: Feature #535 - Drag&Drop and Copy&Paste a File between screens
• Duplicated by: Feature #713 - cross-computer clipboard/drag'n drop
• Duplicated by: Feature #722 - Desktop drag and drop file
• Duplicated by: Feature #731 - copy/paste files
• Duplicated by: Feature #763 - File transfer
• Duplicated by: Feature #787 - Drag and drop (in general)
• Duplicated by: Bug #1259 - drag and drop malfunctions
• Duplicated by: Bug #1614 - Cannot drag a file from a machine to antother machine
• Duplicated by: Bug #2446 - Add file transfer support
• Duplicated by: Support #3097 - Support copy/paste file and drag file between machines

Google user: Doug.Gaff

This is an enhancement request.

Just as text copy/paste between the client and server is supported today,
it would be great to have file copy/paste supported.

As a possible implementation, perhaps the server could run an FTP server
and copy/paste would send files via FTP. Although a direct byte stream
might fit better with the current design.

#1

28 Apr 2009: Issue Importer wrote a comment.

Google user: azanar

The key difference I see here is that text copy/paste is likely to be very small, and
transfers almost instantaneously. For that reason, we do this synchronously when the
user pans from screen to screen, since they probably won't notice the slight lag anyway.

For a file copy/paste, it can be much harder. I can imagine a few possible solutions
to this, none of which are particularly attractive:

1. The file being copied would have to be immediately redistributed to all of the
attached boxen, which would burn a considerable amount of bandwidth. And we'd have to
decide to transfer synchronously or asynchronously. The latter would be annoying for
larger files; the former would require some indication for when the file has arrived,
handler logic for when it hasn't yet, dealing with odd edge cases where the user
provokes two file copies from different machines, etc.

2. Do like 1, but in a just-in-time fashion to each box as we pan. We still have to
elect between synchronous and asynchronous transfer, and the nits that go along with
each.

The FTP solution would buy us a tangible file on the destination machine, but that is
about it. We would still need a representation of the file in the
clipboard/pasteboard/etc, so that pasting the file doesn't have odd edge cases. And
we'd need to have the FTP server either allow anonymous uploads (security problem,
especially with a client that might act on them implicitly on behalf of the user), or
we would need to deal with having credentials setup.

Maybe there are other possibilities, but being that there is a computer network
between each machine, becomes incredibly hard to "fake" that they are all really the
same machine with the same clipboard, window manager, etc, when dealing with
increasingly large sets of data. The abstraction works with mice and keyboards
because the data they send is relatively minimal.

We could restrict this to relatively small files, but where would we draw the line of
what is "too big", and how would we notify the user of such and not be obnoxious at
the same time.

I dunno, this seems like a much larger collection of worms than the size of the can
suggest.

#2

28 Apr 2009: Issue Importer wrote a comment.

Google user: Doug.Gaff

Hmmm. I didn't realize that clipboard text is synchronized when you cross machine
boundaries. It make sense now that I think about it. I'll have to test that out with
a really large text copy and see if I can see the lag. Guess I should have packet
sniffed this.

I'm not clear how copy/paste operations for files are stored on each OS. For example,
when I ctrl-c on a file in windows, does windows place the entire file contents on
the clipboard, or does it just place a URI? Same question for Linux or Mac. I'm
guessing it's a URI, but I could be wrong.

If it's a URI, then when crossing screen boundaries, the URI could be synced instead
of the entire file contents. I'm sure that's a whole other set of problems though.
The URI would have to be translated to match the OS, and a URI pointing off machine
would imply some sort of protocol-based network file transfer.

You're right, this is definitely a can of worms.

#3

17 May 2009: Issue Importer wrote a comment.

Google user: twentyafterfour

just drop files in a public share and grab them on the other machine. I know it's a
pain and file drag/drop/copy/paste would be amazing... but it's a LOT to implement
and I'd much rather see that effort going into making synergy more elegant and stable
rather than bells and whistles

#4

23 May 2009: Issue Importer wrote a comment.

Google user: sorin.sbarnea

23 May 2009: Issue Importer changed Target.

?

#5

25 May 2009: Issue Importer wrote a comment.

Google user: mcordoba

Take the Machine/User for each client and passit to the server. When Drag&Drop a file
between screens, just copy the file to Machine/User/Desktop via SMB. Then redirect
for each OS the Desktop paramaters.

#6

27 May 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

This is a good feature request, thanks Doug.Gaff. I agree with azanar though; this
may be a can of worms. I almost suggested that this may be outside of our scope, but,
most popular virtualization applications do it, so why shouldn't we? Personally I'd
love to drag and drop files between my computers.

However, I have experience with transmitting simple binary data (i.e. a file) over
TCP, and I can say that this approach would actually be more simple than using FTP or
SMB. To use either protocol would be a bit like using a professional drawing package
to draw a smiley face; sure it's designed for drawing things (much like those
protocols are designed for transferring data), but, there's no point in using a
sledgehammer to crack a walnut. The potential issues we could run into with finding
the right application, ensuring its supported on all the platforms we support,
ensuring configurations don't conflict, etc, would outweigh the benefits.

In short, if we were to do this, we should create a simple binary data transfer
mechanism; I've done it before using C++, and, its [relatively] easy.

#7

27 May 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

#8

27 May 2009: Issue Importer wrote a comment.

Google user: douglasgaff

Thanks for considering it. I agree that a simple binary transfer is probably the
simplest.

#9

27 May 2009: Issue Importer wrote a comment.

Google user: mcordoba

nick.bolton.uk I agree with your comment. Simple binary data transfer mechanism sound
good and easy, and clean source code.

27 May 2009: Issue Importer changed Status.

New Accepted

27 May 2009: Issue Importer changed Title.

Support for drag and drop between computers

27 May 2009: Issue Importer changed Priority.

Normal Low

#10

28 May 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

mcordoba, azanar: I just read my comment and I realize that sounds a little terse;
using an existing protocol does have it's own merits. But, my point was, that since I
am fortunate enough to have experience with TCP sockets, we may as well make use of it.

douglasgaff: Thanks, I have decided to bump this up to milestone 2, since I have a
personal interest in it.

#11

28 May 2009: Issue Importer wrote a comment.

Google user: mcordoba

Thanks nick!!!

28 May 2009: Issue Importer changed Target.

? ?

#12

3 Jun 2009: Issue Importer wrote a comment.

Google user: surge3

I think it would be more feasible to integrate this function into context menus on
each client's shell rather than a drag & drop style interface.
For example, right click on a file in windows explorer or mac finder or linux
whatever, and there is a "Synergy" main menu that branches off into submenus that
say "Send to [hostname]" with a menu entry for each client.
In each synergy client, in the configuration file, we could have a variable for a
default path for received files. I think this method would be alot easier to
implement, and a LOT easier than using samba\ftp to transfer files.

#13

9 Jun 2009: Issue Importer wrote a comment.

Google user: malvineous

I have a simpler suggestion for implementing this. Given that most OSes implement
file dragging and dropping differently, and setting up FTP servers running inside
Synergy would be a security nightmare, we could interface directly with each
platform's drag and drop mechanism and pass remote references (shortcuts) around
instead, just like they do themselves for local drag and drop between network shares.

Looking at Windows for the moment, when you drag and drop a file you're actually just
dragging a kind of shortcut to the file, which when dropped in say a folder, tells
Windows to copy the file there. If you drop it in an application instead, it opens
the file in-place (even if you dragged a file from a network share.) This means that
if you had an internal FTP server or the like, you'd have to FTP the file over to the
destination PC and monitor it, so that every time it was saved you'd FTP it back over
the top of the original! Very messy.

However if, on the Windows machine, you open \other\c$\path\to\file\ and drag the file from there, Windows apps will open the remote file in place (without copying it to the local machine) and Explorer will copy it or whatever as you'd expect. So the solution to me seems to be to fake a drag event, so that when you drag C:\FILE.TXT from PC1 to PC2, PC2 sees it not as if you're dragging C:\FILE.TXT, but rather you're dragging \PC1\C$\FILE.TXT

Then whatever app you drop it into will open it directly off the remote PC without
making unnecessary copies of the file (unless you drop it onto Explorer, which will
happily copy the file for you as intended.)

This will of course mean that it will only work best under Windows, but if you run
Samba under Linux you could configure your "remote root" path in Synergy's config
file to be \LinuxPC\rootshare, and then because Synergy has a Windows-compatible
network path to any file on the system, dragging and dropping files will just use
Samba. It could be possible to implement with other filesystems (e.g. NFS), but I
think most people would be happy, initially, with having to run Samba on any
non-Windows platform they want to involve with dragging files.

It would certainly make this much easier to implement, if all you have to do is catch
the drag event when it crosses screens and just alter the filename!

#14

10 Jun 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

malvineous, thanks for taking the time to write.

I believe you have a good point when you say that the different operating systems
have different ways of dragging and dropping, this is certainly something we must
bare in mind.

However, I have to stress my personal opinion on the method of transferring files.
Using an existing 3rd party application would not catch on, as setting up those
services requires a certain amount of technical ability on the users behalf (in terms
of trouble shooting, configuraiton, etc). We also can't assume Synergy+ will
configure these applications automatically, as this may conflict with existing user
configurations.

The best way is to have Synergy+ send the file to another Synergy+ instance it's
self. Again, I have to say that setting up a custom TCP stream is extremely easy, and
is our most practical option for this. There are plenty of libraries out there
designed exactly for this sort of thing.

#15

10 Jun 2009: Issue Importer wrote a comment.

Google user: surge3

Agreed 100%% w/ nick.
As for security concerns, the easiest way to handle that is to now allow any
hostnames except the ones in the synergy cluster to use the file transfer
service...even with that as a baseline there are still other security issues, and I
am not saying to use something rediculous like 256bit AES encryption, but
nevertheless security can be handled appropriately.

#16

18 Jun 2009: Issue Importer wrote a comment.

Google user: malvineous

I agree that using Synergy itself to transfer the files would make it easier "out of
the box" to start dragging and dropping, but I still think it could pose just as many
issues. What happens if you drag a one gigabyte file from one PC to another? How
long will that take before the mouse cursor switches screens? What happens if you're
dragging a 100MB log file (which would take about 10 seconds to switch screens on a
100Mbps network), but you accidentally move to the wrong screen first - is it going
to take 10 seconds to switch to the wrong screen, 10 seconds to switch back, then 10
seconds to switch to the correct screen?

I realise that transferring files over TCP/IP is quite easy, but I think it would be
a good idea to think through exactly how it's going to work before deciding to
implement it just because it's simple. Remember that active FTP also uses a second
TCP connection to transfer the file (in exactly the same way as proposed, raw data
over a TCP port) but that protocol causes a lot of issues with NAT and firewalls.
Anyone running a firewall on their machines will need to open at least one port for
Synergy file transfers, and hopefully nobody will ever want to use Synergy on two PCs
that are connected via NAT...!

While I admit it's been a while since I did any Windows programming, I do recall that
you had to set up your file before starting the drag operation - so if you have to
transfer the file, you can't wait until the user has dropped it, you'll need to
transfer it over the network whenever the cursor switches screens (unless newer
versions of Windows have changed this behaviour.) So there could be large delays
dragging files between PCs.

At any rate, I'm sure it's clear what my preferred option is :-) Perhaps there's
room for both methods? TCP transfers for out-of-the-box dragging and dropping for
small files, and an extra config option for those wanting full drag and drop via
Samba? I'm certainly interested in how you'd go about implementing the Samba-based
drag and drop, so if you're open to accepting patches...

#17

18 Jun 2009: Issue Importer wrote a comment.

Google user: malvineous

Actually now that I think about it, dragging and dropping is (IIRC) very closely
related to the clipboard. A simplification would be that dragging some data (which
could be a file, but not necessarily, it might be a hyperlink from a web page for
example) between two programs sort of acts like a copy and paste between the two
programs, using clipboard structures and datatypes but without affecting the actual
clipboard contents.

We could use this to our advantage by taking the existing clipboard-sharing code in
Synergy and expanding it for use with drag and drop. This would mean that dragging
something between PCs would share the same code as copying and pasting that data
between the PCs, but again without affecting the contents of the clipboard.

This would mean dragging text between word processors on different PCs would work
straight away (since you can already copy and paste that data between PCs), and
dragging files would work exactly the same as copying and pasting a file - which
doesn't work at the moment, but once implemented (via TCP or Samba as discussed
above), then you'd be able to copy and paste files as well as dragging and dropping them.

This would have two big advantages - you could drag and drop anything supported by
an application (not just files), and the code that handles that would only exist
once, for both clipboard and drag/drop.

(granted this doesn't solve the main issue, but hopefully it provides some helpful
ideas as to how the solution could be implemented!)

#18

18 Jun 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

All,

Please could we keep lengthy discussion to the mailing list. Issue trackers are not a
good place to have lengthy debates.

Thanks,
Nick

#19

13 Jul 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

13 Jul 2009: Issue Importer changed Assignee.

2

#20

25 Aug 2009: Issue Importer wrote a comment.

Google user: alexander.leisentritt

As in other issues I think the direct transfer will be the elegant way working anywhere.
Why not serving a quick (and dirty) solution like another KM does?
Dragging the file off the screen copies the file to the share and on the other screen
a dragging operation with the just copied file is started...
The share can be secured so noone else can acces your data only your two comps and so
on...

#21

25 Aug 2009: Issue Importer wrote a comment.

Google user: nick.bolton.uk

Hmm, it depends how popular the issue gets. If people absolutely must have it, we may
end up implementing a hacky solution for the short term. Eventually though, I'd like to
not have to rely on global shares.

#22

27 Aug 2009: Issue Importer wrote a comment.

Google user: a...@catertots.net

For users looking for a simple solution while this is being considered. What I did
was create a shortcut on PC1's desktop to PC2's desktop and vice-versa. Now on PC1 I
can just drag a file onto the shortcut and it will be copied to PC2's desktop.

#23

22 Feb 2010: Issue Importer wrote a comment.

Google user: tormentaideas

Have you tried a combination of synergy with somthing like shared'>http://www.softpedia.com/downloadTag/share+clipboard">shared clipboard tools
implementation?

#24

17 Mar 2010: Issue Importer wrote a comment.

Google user: tormentaideas

I'm proving synergy + Simidude ("http://www.agynamix.de/products/simidude/":http://www.agynamix.de/products/simidude/ ) with
Windows and Mac os X and it´s run very well.

Maybe can be better if support drag & drop, but multi-copy-paste between computers is
a good solution.

#25

21 Apr 2010: Issue Importer wrote a comment.

Google user: nxarmada

#26

4 Jun 2010: Issue Importer wrote a comment.

Google user: jasonirwin73

#27

5 Jun 2010: Issue Importer wrote a comment.

Google user: nick.bolton.uk

#28

5 Jun 2010: Issue Importer wrote a comment.

Google user: twig.ngu...@gmail.com

Hi Nick,

I've taken a quick look into this topic before and this is something that may be of
use to you.

Rather than copying the whole file across when you switch screens, which is
undesireable for large files, you could do the following:
a) User copies file into clipboard
b) User switches screens
c) Synergy detects that files are copied into the clipboard and changes it to a
custom clipboard type (that only Synergy can handle)
d) When the user tries to paste it, Synergy can perform its copying action across via
the client somehow (method of choice is yours here) to the specified location

Some references that are of great use for codebase or understanding:
* "http://msdn.microsoft.com/en-us/library/ms649013(v=VS.85).aspx":http://msdn.microsoft.com/en-us/library/ms649013(v=VS.85).aspx
Clipboard Formats (Windows)
I beleive 'Registered Clipboard Formats' and 'Private Clipboard Formats' are the ones
you'd want.

• "http://msdn.microsoft.com/en-us/library/ms686623":http://msdn.microsoft.com/en-us/library/ms686623
OleSetClipboard Function (COM)
If you decide to go the OLE/COM way, you can use this. I'm not familiar with how this
will work on other operating systems so not advised.

• "http://msdn.microsoft.com/en-us/library/aa969396.aspx#pasting":http://msdn.microsoft.com/en-us/library/aa969396.aspx#pasting
Handling Shell Data Transfer Scenarios (Windows)
See section "Copying File Names from the Clipboard to an Application"

• "http://msdn.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx":http://msdn.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx
Clipboard Class (System.Windows.Forms)
If you ever were crazy enough to use .NET for it, heres the clipboard documentation.

I forgot that I've implemented a similar feature for drag/drop in another project
years ago. It resolves the filenames of multiple files dropped onto a dialog.

5 Jun 2010: Issue Importer changed Target.

? ?

#29

7 Jun 2010: Issue Importer wrote a comment.

Google user: criguada

Please remember that the beauty of Synergy is that it is cross-platform, so please DO
NOT USE PROPRIETARY TECHNOLOGY like OLE/COM, .NET or other crap like that. :-(
If ppl want a more complete implementation that runs ONLY on M\$ systems, look at
Input Director ("http://www.inputdirector.com/":http://www.inputdirector.com/ ).

#30

7 Jun 2010: Issue Importer wrote a comment.

Google user: twig.ngu...@gmail.com

Yeah, I took a look around but I dont know enough about Linux/MacOS to suggest any
coding possibilities there.

ps. Input Director seems to be Windows only (although somehow its still usable
through that UAC popup!)

#31

14 Jul 2010: Issue Importer wrote a comment.

Google user: kevin.omalley

Me too. Just kidding. A cheap and dirty solution for files is to use dropbox or sugarsync on each box, dropbox with local lan detect is especially nice. Takes away from the beauty of the app i agree... A serious issue with file copy paste as well as moving windows from one screen to anothe (which wuld be some kind of crazy xserver type thing on box) is the danger of mistaking where you are copying and pasting this that or or the other file... I could tell you nightmare stories involving lab production servers and terminal windows back in the day....

#32

16 Jul 2010: Issue Importer wrote a comment.

Google user: pcintaiwan

Just a thought. Back in the old day, we use uuencode/uudecode to transfer binary files.
Can we simply uuencode the binary file (i.e. JPEG) and put it in clipboard and uudecode on the other end of client?

Let me know what you think?

#33

17 Jul 2010: Issue Importer wrote a comment.

Google user: twig.ngu...@gmail.com

the main issue is large files.

#34

10 Dec 2010 06:40: bobby k wrote a comment.

First, let me say this is a great feature request and the notion has crossed my mind over the years of using this program.

Adding this functionality is not cut and dry, but the file sizes should not be too concerning. Worst case, you can put in a textbox that defines the maximum file size.

Actually, I think the best approach may be to have two categories of copy paste operations, consider:

First, files that are small enough to be copied directly to clipboard of the client(s). Second we have "large" (by some user defined size) files that require user accepting the transfer via the byte stream of synergy. This second category should be controlled by the synergy client displaying a dialog before transferring a large file warning them of the time it will take to make the transfer.

I guess the other method (to be used in conjunction with the byte stream method) might be global hooks on the menu items to add a "synergy copy" option, at least for windows.

Just my 2 cents, hope it helps.

27 Dec 2010 16:26: Nick Bolton changed Target.

? ?

13 Jan 2011 00:52: Nick Bolton changed Title.

Support for drag and drop between computers Support for file copy (and drag and drop) between computers

13 Jan 2011 11:12: Nick Bolton changed Priority.

Low Normal

13 Jan 2011 11:12: Nick Bolton changed Found in ver.

2.0.0

13 Jan 2011 11:12: Nick Bolton changed Platform.

Various

#35

21 Jan 2011 23:37: Jean-Sébastien Dominique wrote a comment.

I have written a python script that makes transferring files between computers very easy. It uses pyftpdlib to set up a FTP server, and a client script transfers the files. It contains a configuration file in which the target folder, users (name, password, optional subdir), and limits are defined. Integrating it with synergy should not be too complex: I was able to make it transfer a file whenever I would switch screen. Where it gets tricky is getting to know what is being dragged during the screen switch.

Here is a challenge to all of you, developers out there. Provide us with working source code (cross-platform or not) of a program able to detect what is currently being dragged. If it turns out on some systems it is impossible to obtain this data unless the item is dropped, then we will simply have to build a box where we can drop the file to transfer it.

Now, if that box is really needed, it would be best if it could be a tray icon that lets us choose to which screen to send it. Kinda like drag and drop to the icon, then click a button to say where to send it.

Technically, using my script you could drag and drop to a script predefined to transfer to a certain machine. It works like a charm, but it would be much nicer if it would integrate with synergy.

#36

29 Jun 2011 18:51: J. Snell wrote a comment.

The way I personally see this working best is to use SMB/CIFS as it is already supported in Windows, OS X and many graphical file tools on Linux. Essentially what I believe should happen upon a file copy operation is for the local computer to retain the usual file operation in its clipboard while all remote machines have a file operation placed in theirs which is transformed to appear to be on a samba server running locally on each remote machine.

This approach means that no data is transferred until the point that the file paste operation occurs, and at this point synergy simply shovels it across, and the OS itself does what it usually does for the transfer of a remote file.

The advantage to having the samba server appear local is the actual transport mechanism can use any protocol the developers desire, across a single connection between machines, carrying the file data through whatever encryption scheme they plan to implement in 2.0, while the OS just sees a plain old samba service.

A similar approach could be done for drag and drop by having synergy generate a drag/drop event that looks to the OS like a file from a samba server just got dragged, thus it should again do the right thing itself with respect to dialogues, and synergy can concentrate on shovelling the data across when asked for it. If you have applications that know how to react to pasting or dropping a file copy operation, then provided they support files on a samba source, they would react as expected. To see an example of this in action, drag an image file on a samba server from the Gnome file browser to the Gimp; The Gimp doesn't support pasting a file, but this applies equally to local ones as well.

#37

29 Jun 2011 23:09: Jean-Sébastien Dominique wrote a comment.

This implies that the machines establish a Samba connection beforehand for the transfer to occur. The clipboard copy/drag and drop event simply contains the path to the file, not the contents which needs to be transferred. Thus the copy operation would indeed put the path of the file in the clipboard, but when pasting, the application could be unable to locate the file, or might even copy the wrong file. The paste operation therefore needs to be intercepted, which means we need to intercept not only the keyboard shortcut, but also any API call to the clipboard, and we can't be sure of how applications will handle it, as they simply read the data then do their own operations.

However, I like the idea of having a link between the two machines, which could be either until the end of the file transfers (end of queue plus a few seconds) or for the whole Synergy session, to allow for easy file transfer. Synergy could have an interface to facilitate this, just think of how TeamViewer does it. This could be handled in band, which would increase the complexity of the Synergy protocol, or out of band by using external tools, such as a small FTP server, like the Python script I made. To catch the copy/paste event, there could be a hotkey/combination registered with Synergy that would make sure the path to the file is in the clipboard, but there is still the problem of where to create the file. There could be a folder dedicated to receiving files, but trying to obtain the path of the application in the foreground is not reliable. One could very well get the proper folder in say Windows Explorer, but someone using a different program (replacement) would be unable to use this feature.

#38

5 Aug 2011 00:16: Luke Scott wrote a comment.

I really don't think it needs to be that "complicated" (relative). Pre-syncing file(s) would be disastrous. Big files, more than one file, etc... Trying to intercept a paste action is also trouble because each OS does this differently, and each application may have its own way of hooking into the clipboard.

All that needs to be done is a simple virtual file system to provide a fully qualified path. This can be done with Fuse/MacFuse/WinFuse, or at the very least borrow from these projects. Synergy itself would power that file system and copy the files on demand. The OS clipboard for files, at least for network shares, should contain a path anyway. I really think that would be the most efficient way to handle things.

#39

5 Aug 2011 17:27: Luke Scott wrote a comment.

An alternate to WinFuse, which from what I understand uses FIPS, is Dokan, which uses a kernel driver.

#40

12 Sep 2011 23:45: Josh VanderLinden wrote a comment.

The idea of including a torrent system in synergy has been lingering in the back of my head for years now. Might be overkill for small files and/or low-powered systems, but big file transfers might work out well, right? That way one computer could be the original source and as another computer gets more pieces of the original file(s), the load would be distributed a bit better. The only nodes allowed to participate in the transfer would have to be connected with synergy, and the transfer would have to be encrypted.

Downloads wouldn't have to happen automagically, but only as requested (some magic keybinding?). Some nice "Copying files" interface would be nice for this, but that might be better left up to platform-specific tools.

Just a thought.

#41

15 Sep 2011 03:27: Nick Bolton wrote a comment.

Maybe I should take this feature more seriously. This seems to be the most popular feature of the new kid on the block ("Mouse without Borders" by Microsoft), and it's relatively simple to implement, and popular.

I'm assigning this to the 1.4 track.

15 Sep 2011 03:27: Nick Bolton changed Priority.

Normal High

15 Sep 2011 03:27: Nick Bolton changed Target.

? 1.4.6

#42

15 Sep 2011 04:25: William Nguyen wrote a comment.

Oh wow, I'm disappointed they stole the whole "Synergy" idea without even referring to it at all.

#43

24 Oct 2011 01:05: Andrew Wakeman wrote a comment.

Nick Bolton wrote:

Maybe I should take this feature more seriously. This seems to be the most popular feature of the new kid on the block ("Mouse without Borders" by Microsoft), and it's relatively simple to implement, and popular.

I'm assigning this to the 1.4 track.

Hi, I am beginning work on a fix for this feature as my final year project at university. I have a few ideas of what I'd do but if anyone has any ideas that they think are serious, effective and efficient ways to do it then please do contact me. Remember that it has to be fast, cross-platform and secure.

Nick, you said "...and it's relatively simple to implement..." above, I would like to hear your ideas on how you think it would be best implemented, after all I'm sure you know the source code and general concepts the best out of anyone and I'd love to make a really good contribution that will be accepted and help out all the users, not least myself.

29 Oct 2011 22:38: Nick Bolton changed Target.

1.4.6

3 Nov 2011 16:23: Nick Bolton changed Priority.

High Normal

#44

6 Sep 2012 02:18: Zane Gifford wrote a comment.

Any update on this?

#45

18 Oct 2012 00:08: Twig Nguyen wrote a comment.

Sorry for the re-post, I put this in the wrong ticket. It's been a while since I've taken a look at the tracker and lost track of this thread when it moved over from Google Code.

Although it's Windows only, it's got file transfer capabilities built in.

#46

18 Oct 2012 18:38: Jonathan Schalliol wrote a comment.

Teleport on the Mac supports this, and it's a great feature: http://www.abyssoft.com/software/teleport/

#47

2 Nov 2012 00:16: Van Wanless wrote a comment.

Whatever method you choose to support, consider using scp as well. For machines with an ssh server installed (all new Mac and nearly all Linux machines, fewer Windows machines, but easy in any case) it would automatically mean secure file transport. My text editor (SlickEdit) allows me to remotely edit files via either ftp or ssh; this might be a good model for Synergy as well. And by the way, thanks a lot for a terrific product; I use it daily, don't know how I could do without it.

#48

5 Nov 2012 03:09: Amir Pakdel wrote a comment.

Hi Andrew,

I have started implementation of DnD (Drag and Drop) by dragging text between XWindows based systems (Arch and Ubuntu Linux to be precise).

What I did so far:

• Do not lock to screen by mouse button
• Accept Drop on the window of Synergy and send required XDnD events to the source of Drag
• Send an event to Synergy client so it starts the Drag on the other side (new ClientProxy version would be 1.5)
• A great number of small adjustments; like leave() function and Mouse Buttom and Mouse Movement related functions.

For now I am trying to hide the mouse cursor on the server side: I failed to hide or change mouse cursor when mouse pointer is actively grabbed by some other client. Neither XDefineCursor can change the cursor nor XChangeActivePointerGrab (since my application is not the client that has grabbed the pointer). Do you have any idea how it can be done?

Next step would be sending actual data via a couple of events; like what is done during copy/paste.

18 Nov 2012 18:32: Nick Bolton changed Target.

1.4.11

#49

23 Nov 2012 19:01: David Bakin wrote a comment.

A plug-in model for UI actions might be a good first/intermediate step. Define a plug-in model for UI actions such as clipboard cut/paste and drag/drop. Upon an action the client and server plugins could be notified with parameters that included each other's hostname (or IP address) and then the plugins could do whatever they wanted - talk to each other, one would do an scp to the other machine, they could fork bittorrent clients, whatever. It would provide flexibility for people to experiment with multiple approaches.

Then, of course, YOU could provide a plug in for drag/drop according to whatever model pleased you best!

#50

5 Dec 2012 19:36: Andres Rodriguez wrote a comment.

Hey, I have been using Synergy heavily recently and I think it would benefit tremendously from having the ability to do this.

#51

11 Dec 2012 22:26: Aakash Chopra wrote a comment.

voting...

#52

20 Dec 2012 07:52: Roy Roye wrote a comment.

This usb connection has drag and drop between mac and windows: http://www.j5create.com/our-products/wormhole-switches/juc100.html

#53

6 Mar 2013 01:49: Aaron Deadman wrote a comment.

I think this could be accomplished using the TCP sockets transfer Nick Bolton was describing. Upon click-drag of a file, the client would notify the server (and thus all other clients) of the size of the file to be copied. Each client could then reserve that much disk space on their disk's temporary storage area as a zeroed file, so that when the cursor is dragged into the next screen, the OS can use that file handle to perform the drag-drop request. Synergy could then intercept the mouse released destination and copy the file over the network, before moving it from Temp Files or /tmp to the final location. This way there is nothing copied to a clipboard and so moving mouse between screens is lag free, with file copying performed in the background without dependence on another software service. This approach requires perhaps a little more developer work in the form of hooking into each platform's file explorer/drag-drop architecture at a lower level to intercept and create dummy events, in the Finder, Windows Explorer, and the Open Desktop.

#54

15 Mar 2013 04:51: Andy White wrote a comment.

Why does it have to integrate with each OS' file manager?

The user experience could be as easy as 'drag file to side of the screen that is configured for that device'. Have a small bit of UI pop up (a vortex or something similarly spiffy) and drop the file on the initiating machine. Transfer via TCP socket to the recipient machine, have it 'pop' out of a vortex onto the desktop when it arrives, and the user can drag it from there.

It seems like a lot of effort to try and make this process "seamless", so I say acknowledge the constraints and make a great experience within them.