LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2018, 08:14 PM   #1
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Rep: Reputation: 0
Drag and drop from Samba share creates a desktop entry instead of a copy


Hi everybody.

I have just installed a Samba server on a Rasberry Pi, connecting Debian 8 machine and a laptop running Windows 10.

I can create, modify and delete shared files on both devices and all works pretty well, but one thing puzzles me:

When I'm on Debian and I try to drag and drop any file from the shared folder to the desktop, instead of copying the file it creates a file which contains only desktop entry, etc. information. Before I can edit any file on shared folder, I have to copy paste it first.

How can I make it so that drag and drop creates a copy? What am I missing?
 
Old 08-26-2018, 09:14 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,748

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
Which GUI program are you using?
 
Old 08-26-2018, 09:53 PM   #3
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Original Poster
Rep: Reputation: 0
PCManFM file manager on LXDE
 
Old 08-27-2018, 01:23 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
show us the content of the .desktop file.

what happens if, instead of drag'n'drop, you right click => copy, and then paste to your desktop?

Quote:
Originally Posted by TeTaFI View Post
Before I can edit any file on shared folder, I have to copy paste it first.
i think you'll need to explain this. why can't you edit the files directly in their location?

Quote:
How can I make it so that drag and drop creates a copy? What am I missing?
maybe filemanager settings?
 
Old 08-27-2018, 07:52 AM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Drag and drop from Samba share creates a desktop entry instead of a copy

Try right click, send to, then select the destination. Or just copy and paste it.
 
Old 08-27-2018, 09:15 AM   #6
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
show us the content of the .desktop file.
Not really sure what you mean? If I copy the content of a dragged and dropped example file it contains this:

[Desktop Entry]
Type=Link
Name=test.odt
Icon=application-vnd.oasis.opendocument.text
URL=smb://raspberrypi/myShare/test.odt

Quote:
what happens if, instead of drag'n'drop, you right click => copy, and then paste to your desktop?
That works as it should.

Quote:
i think you'll need to explain this. why can't you edit the files directly in their location?
On Windows I can do that. On Debian it starts opening LibreOffice, then it loads a moment and hangs.

Quote:
maybe filemanager settings?
I've looked and tried, but if I force "Default drop action" to copy, then it does that everywhere. "Auto (move if on the same file system, otherwise copy)" doesn't seem to work in this case.

Quote:
Originally Posted by mralk3 View Post
Try right click, send to, then select the destination.
No such option available.
 
Old 08-28-2018, 11:01 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
all in all it just seems to be a feature of your desktop environment; i do not know if it's possible to change it, you'll just have to get used to
right click => copy
right click => paste
instead.

except for this:
Quote:
Originally Posted by TeTaFI View Post
it starts opening LibreOffice, then it loads a moment and hangs.
do you want it to open libreoffice (it would appear to be most suitable for an .odt file)?
can you reproduce similarly erroneous behavior with, say, plain text files?
 
1 members found this post helpful.
Old 08-28-2018, 07:39 PM   #8
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
all in all it just seems to be a feature of your desktop environment;
It may quite possibly be so. I might try another file manager later, if that makes any difference.

Quote:
can you reproduce similarly erroneous behavior with, say, plain text files?
Text files create the same error. However, images open just fine.

But because I can open any file AFTER copy pasting them to my desktop - then that's good enough, since there is no obvious solution.

I wish to thank you all for helping me.
 
Old 08-29-2018, 12:03 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TeTaFI View Post
Text files create the same error.
please be more precise.
are you saying plain text files open in libreoffice?
that shouldn't happen. try installing a plain text editor (e.g. mousepad), then try again.
i would like to ascertain that this is a libreoffice/samba/gvfs/fuse problem.

Last edited by ondoho; 08-29-2018 at 12:04 AM.
 
Old 08-29-2018, 06:16 PM   #10
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
please be more precise.
are you saying plain text files open in libreoffice?
Sorry for being unclear.
What I mean is: if I drag and drop a text file created with Leafpad from shared folder to desktop, it contains only similar desktop entry information, as the previous test.odt did. However, opening the .txt file inside the shared folder works as it should.
 
Old 08-30-2018, 12:35 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok.
so all in all, the problem from your op is libreoffice specific?
i did a Quick Search (tm), and it is obvious that my hunch is correct, and you are not alone.
please continue from there.
 
Old 08-30-2018, 03:39 PM   #12
TeTaFI
LQ Newbie
 
Registered: Aug 2015
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
so all in all, the problem from your op is libreoffice specific?
Since my original question was: How can I make it so that drag and drop creates a copy? This whole thing sidetracked with the LibreOffice issue.

But since my question seems to be related to my choice of desktop environment, there might not be much to do about it.
This LibreOffice issue is interesting and I will look into it further. But as for now this case is closed.

I thank you for your time and effort and for all your help.
 
Old 08-31-2018, 12:30 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TeTaFI View Post
Since my original question was: How can I make it so that drag and drop creates a copy? This whole thing sidetracked with the LibreOffice issue.
yes, but if libreoffice wouldn't misbehave in that situation, you could just edit the files in place and there would be no need to copy them over first.

about your original issue:
a Quick Search (tm) did not reveal anything; maybe you should go over your samba configuration again.
 
  


Reply

Tags
samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i can not drag and drop from desktop or any device to floppy disk. wafe12345 Linux - Newbie 8 08-20-2017 01:31 PM
LXer: Minus Desktop App for Linux Lets You Drag-N-Drop Photos Into Taskbar for Instant Upload LXer Syndicated Linux News 0 02-15-2011 09:00 AM
Winword creates read only files on my Samba share eklum Linux - Server 2 10-15-2010 02:51 PM
VNC drag and drop desktop files I saw a MAC do it, can Linux? lindylex Linux - Software 5 03-09-2009 09:45 PM
Firefox location drag-n-drop to desktop not working keratos Ubuntu 2 05-16-2007 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration