mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #855] Tracker issue: Drag and Drop. #681
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#681
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shymega on GitHub (Aug 28, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/855
Due to the numerous issues created, without any sign of checking for duplicate issues, I have taken this opportunity to close those issues about drag and drop not working in favour of a centralised tracking issue.
Please only comment on this issue with constructive and positive messages that will facilitate the development and maintenance of drag and drop support. Unconstructive messages will be removed if they do not fit the discussion. Reacting to messages is fine, however, as it indicates the general feeling towards construction and maintenance of drag and drop.
Thank you 😄
@shymega commented on GitHub (Aug 28, 2020):
On the note of reactions, could those with this issue, please react to this comment with 👍 (
:+1). Thanks. This will allow us to gauge the spread of the issue.@chrishultberg commented on GitHub (Sep 14, 2020):
Using Ubuntu 18.04.3 LTS as the server and Windows 10 Pro as the client, I can not drag and drop files.
This also means that I can't copy/paste the files...
Doesn't seem like there's been an update to this in a few weeks so I wanted to double-check.
@shymega commented on GitHub (Sep 15, 2020):
You don't need to double-check. If the issue hasn't been updated, please assume nothing has changed. Which it hasn't. I only say this so the tracker issue doesn't get "noisy" with comments asking if there's been any progress etc....
@arthur-tacca commented on GitHub (Nov 27, 2020):
Personally, I would prefer a file transfer that was very clunky (even just pasting the source and destination filenames into text boxes) but worked, rather than something with a smooth interface (like drag and drop) but is unreliable. This is especially the case with Linux - I don't believe drag and drop is even intended to work on Linux but Linux-Windows is my primary use case, so anything at all would be a great help with that.
(Apologies for commenting on this high-activity thread but I think this is genuinely new content. Those that agree/disagree with my preference had add their reactions accordingly to this comment.)
@shymega commented on GitHub (May 22, 2021):
All - this is a tracking issue for the development of this feature. Please only comment constructively. I'm going to delete those comments that merely post logs etc of the current behaviour. I recognise my decision may be controversial, but we really need to keep the issue constructive. Thank you.
@shymega commented on GitHub (May 23, 2021):
By the way, I know this is a late reply, but thank you for your comment - I think we should bear this in mind for the implementation, as and when. Definitely valuable content, thank you!
@ussu99 commented on GitHub (Aug 22, 2021):
I'm using following Combination of Machines:
Summary What Works what not
@baldyman01 commented on GitHub (Aug 23, 2021):
Drag and drop does not work at all on Ubuntu 20.04. If this is the central tracking issue for drag and drop and the last actual status update was "If the issue hasn't been updated, please assume nothing has changed. Which it hasn't." and this was back in Sept 2020, can we now assume that this feature will never happen and is being removed from the feature list of the program?
@shymega commented on GitHub (Aug 23, 2021):
No, it will happen, but we just don't have enough devs or manpower yet. Again, assume nothing has changed...
@EolnMsuk commented on GitHub (Sep 7, 2021):
How can I help make this happen? I have
and don't like any other software out there. If me throwingat you isnt constructive... del this ;)@shymega commented on GitHub (Sep 8, 2021):
Still no update, but we will consider the suggestion of monetary contributions towards the goal. I don't think it will be a straightforward fix, however, and we have a fair few critical issues to go through.
@chloelcdev commented on GitHub (Oct 14, 2021):
First off as a side note I find it odd that this was merged with the clipboard issues.
I'm running Macmini 9,1 with macOS 11.6 (20G165) for the client, Windows 10 Pro 10.0.19043 Build 19043 as the server, and the clipboard will only successfully copy from client to server, but never from server to client. The client logs do note that the clipboard was updated (though only sometimes, and there are two prints) but it seems the clipboard is only cleared when this happens.
@Zeratoxx commented on GitHub (Dec 13, 2021):
Did not see a comment about the log message, so here it is:
@retX0 commented on GitHub (Dec 17, 2021):
I just got
ERROR: failed to get drop targetwith version 2.4.0@JoshQuake commented on GitHub (Jan 6, 2022):
Drag and drop has never worked for me since install over a year ago.
ERROR: failed to get desktop path, no drop target available, error=2Host: Windows 10 20H2 19042.1415
Client: Windows 10 v2004 19041.1348
Barrier version currently 2.3.3. I will update and test again.
UPDATE: Updated to 2.4.0 on both machines. No longer receive the above, but I now receive
[2022-01-05T17:31:24] ERROR: failed to get drag file name from OLE@ElJuky commented on GitHub (Jan 19, 2022):
Tests on Barrier 2.4.0.1, used on two Windows 10 and command line exclusively :
With no admin rights, drag and drop of files is ok (I've added the --drop-dir and --enabled-drag-drop parameters of course)
With admin rights, the message "failed to get drag file name from OLE" is displayed
Copy/paste of files not working. Don't know if it's normal. I check the content of clipboards and I see an entry "BarrierOwnership" on the computer that waiting to paste the file.
Thank you for this software !
@jmrenouard commented on GitHub (Jan 28, 2022):
Hi,
This issue is still present in 2.4.0
Changing setting Elevate to As needed on the server side solves this issue
But iI don't figure it out why this is impacting copy/paste feature
Thanks for this great piece of software, Barrier is awesome !
Jean-Marie
@shymega commented on GitHub (Feb 3, 2022):
Yes, the main reason I merged it with them is because of the similar mechanic, and I thought at the time it would be solved with the same fix. But I'm not with the Barrier project now - so I can't change this. I've been meaning to reply to your side note, so I hope this explains my reasoning.
@Sollace commented on GitHub (Feb 22, 2022):
Having the same issue on 2.4.0 where both drag-n-drop and clipboard sharing is not working, however when I check I see Elevate is set to As Needed on both the client and server, so I'm thinking it could be something else entirely.
Also for context, my setup is Window 10 to Windows 10, with SSL disabled (because I couldn't get it working with).
@Sollace commented on GitHub (Feb 22, 2022):
One thing that I notice, which is weird... I can drag a file, but then as soon as I move the cursor to the other screen, the drag is cancelled on the server's side (and the log window closes, for some reason).
Just taking a guess here, but you don't think the drag is being cancelled before Barrier gets notified, and so it ends up trying to read a file drag with no file (hence the "failed to get drag file name from OLE" message)? So maybe the thing to look at is what is causing Windows Explorer to cancel the drag operation prematurely?
@ksdavidc commented on GitHub (Apr 26, 2022):
I think I may have a hint as to what is happening.
My journey:
first: I am working on 3 macs, 2 of them updated to monterey, one high sierra. server is monterey, others client. will post config details in a second.
Behavior:

Drag and drop fails when I reach the edge of the screen. The mouse moves to the other screen, but the operation fails. In addition, I am now stuck in the second machine (can't return) and have to reload to return.
configuration
server
Client: auto config
unrelated note: I couldn't actually get barrier to run initially on the clients until I disabled SSL, which is a bug.
HOWEVER:
I am now finding that if I double tap I can get through with the file seemingly still attached to the cursor, but dropping in finder fails. no file appears, but
I try AGAIN and it seems to work.
I realize that it worked because this time perhaps somehow I did not trigger something in my menu bar (autohidden) by etnering at a different location. I am entering via the bottom of server into top of client and hitting the menubar/file menu. Or maybe just the file was different, or the folder i dragged into.bar
See if I can reproduce:
turning off autohide on client. not quite helping. still triggering finder menu or menubar actions.
reconfiguring client to the right of server.
YAY, I think I figured it out!! If I make sure that when I drag out of the finder and over the desktop, not another application, then when I enter the client I can drop, as long as I don't have anything selected in the corresponding finder and i am not meeting other parts of the GUI. I roughly tested again, and double tap seems to be necessary as well.
Of course this isn't thorough test, and my diagnosis is probably off, but I think it does give a hint as to what might be happening.
Logs attached
Logs.txt.zip
PS Barrier is really awesome. I just went to a 3 computer setup and being able to have only one set of mouse, keyboard and trackpad (partial...some gestures not working) on the table is great!!
@ksdavidc commented on GitHub (Apr 26, 2022):
forgot the client logs, which show at ton of these: related?? I don't understand logspeak.
2022-04-27 03:15:36.096 barrierc[3666:562066] pid(3666)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
clientlogs.txt
.
@jhay06 commented on GitHub (May 25, 2022):
does anyone fix this issue ? , i have mac os server and windows 10 client , but cannot drag and drop as well
@dimyself commented on GitHub (Jun 25, 2022):
I'm also having this issue :(
I'm trying to copy/paste and drag/drop from Arch linux <-> Arch linux
I can provide logs if needed.
Basically, when I try to drag a file, the cursor just stops at the edge of the screen.
The log is saying:
"try to leave "pc" on the right"
"locked by mouse buttonID: 0"
"locked to screen"
Thank you!
@mood128 commented on GitHub (Jul 6, 2022):
Any update on this?
@HobbitSlayer commented on GitHub (Jul 6, 2022):
Getting this error when trying to drag n drop a large file. Server running on MacOS 12.4, client on Windows 10 Pro.
[sandbox] Failed to get a sandbox extension@DSDev-NickHogle commented on GitHub (Jul 8, 2022):
@shymega: I am also experiencing this issue, and I did a pretty deep dive into it. I suspect it may have something to do with
barrierd.exebeing run as a Windows Service. InMSWindowsWatchdog.cpp, theactiveDesktopName()function is returning an empty string. I added hooks to get the error code, and the failure happens when here, when callingOpenInputDesktop(0, FALSE, GENERIC_READ).If
activeDesktopName()doesn't return the string"Default", then the Watchdog service forces the child processbarriers.exeto run with elevated privileges. This results in the process being started as theSYSTEMuser, which does not have it's own Desktop directory.(The call to
SHGetFolderPathinMSWindowsScreen.cppwill attempt to get the Desktop folder by expanding%USERPROFILE%\Desktop, which expands toC:\Windows\System32\config\systemprofile\Desktop, which does not exist on my Windows 8.1 machine nor on my Windows 10 machine.)Some other things I've observed:
barrierd.exeas a regular user, not as a system service thenSHGetFolderPathsucceeds, but I have other issues, like it cannot save theLogLevelsetting.Allow service to interact with desktop, in the Services ControlPanel, I still get the same failure in the call toOpenInputDesktop.GetError(), after theOpenInputDesktopfailure, the error code is0x1.barriers.exe. I haven't checked if I am getting the same error message on the client machine ("failed to get desktop path, no drop target available")Host (Server) machine: Windows 8.1,
[Version 6.3.9600]Client machine: Windows 10,
[Version 10.0.19044.1706]Barrier version
v2.1.0.I hope this helps! I'd love to see Drag & Drop working someday!
@mehdico commented on GitHub (Jul 14, 2022):
Same with Mac<>Kubuntu
when drag file from Kubuntu to Mac:
when drag file from Mac to Kubuntu:
@shymega commented on GitHub (Jul 16, 2022):
Thanks for the input, but I'm no longer involved with Barrier. I gave up. Now forked to Input Leap and my own hybrid KVM. I am no longer subscribed to this issue either, so I'm afraid you're on your own...
@RainOfPain125 commented on GitHub (Nov 20, 2022):
sad that development for the only working open-source virtual KVM has been abandoned. I got the same problem, can't drag/drop files. If I could copy paste files I wouldn't care, but copy paste only works with text and etc, not files.
@mirh commented on GitHub (Nov 21, 2022):
Development is still going on...
https://github.com/input-leap/input-leap
@RainOfPain125 commented on GitHub (Nov 23, 2022):
um... If it was being developed then it would be great if the lads could make a download for it haha
@shymega commented on GitHub (Nov 26, 2022):
There are CI artifacts still being generated, but we have a lot of Barrier references and copyright headers to be updated. You can access the artifacts via GH Actions. Tags still exist, and if you check them out in a local Git clone, you'll be able to build.
@joseveland commented on GitHub (Mar 4, 2023):
I got a solution to this problem by:
I just untrust graphical interfaces (barrier.exe) so i went directly to run the client/server binaries at "C:\Program Files\Barrier"
Ta Da .. I dragged and dropped files from one computer to another and the result was, the files were copied on the "Desktop" of the other computer always (as the binaries also said in the logs), so worked beautifly
For you dev guys:
I came up with this solution after digging a little bit on the github source code using "grep -rne Xxx" search and "nano ...." to look further on the files (Actually using windows on its ubuntu WSL2 support and some "apt install nano")
I realize the error was a problem about not having a "filename = m_dropTarget->getDraggingFilename()" (src/lib/platform/MSWindowsScreen.cpp) which derived from another portion of code at the beggining of the execution of these binaries because where i wasn't reading a message "drag and drop enabled" (src/lib/barrier/App.cpp) when using F2 logging (Menu : Barrier --> Show log) on the GUI binary (barrier.exe)
So as you saw, i add these argument manually on the barriec.exe and barriers.exe binaries (--enable-drag-drop) with a little "--help" reading on each one of them to see the right flag to enable.
@shymega commented on GitHub (Jun 2, 2023):
@joseveland I was pointed to your comment on the new fork's tracker.
Might be a good idea to post your solution on the Wiki as a PR? https://github.com/input-leap/wiki-prs
Barrier doesn't seem maintained anymore.
Thanks.
@DevDroid1 commented on GitHub (Apr 7, 2025):
For now if you want fragrant and drop you can use a cloud or smb or kde connect