Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-07-05 23:46:40

johnywhy
Member
Registered: 2011-10-09
Posts: 288

How to change default thunar drag to move instead of copy?

hi

i've read upgrading to xfce 4.12 causes Thunar drag-drop default behavior to be move instead of copy.
So, i upgraded to 4.12, but default drag behavior is still copy.
Is there a config file or any other way to change default behavior to move?

thx


arch xfce x86_64

Offline

#2 2015-07-06 06:02:40

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: How to change default thunar drag to move instead of copy?

I've been dragging and dropping to move files for several years now in Thunar (since I started using Xfce).

Now that's from one directory to another on the same drive/partition. Were you meaning from one partition (or drive) to another?

Regards,
MDM

Last edited by MountainDewManiac (2015-07-06 06:03:08)


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#3 2015-07-06 12:01:40

Jerry3904
Member
Registered: 2013-11-09
Posts: 863

Re: How to change default thunar drag to move instead of copy?

drag = move works here in 4.12 by default (except across devices)


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#4 2015-12-14 00:27:37

debianbob
Member
Registered: 2015-12-13
Posts: 2

Re: How to change default thunar drag to move instead of copy?

Running Debian jessie with xfce4.12 from the MX-15 repo over here and drag and move does not work when user ~= owner. For example it gives a copy with files/folder on nfs4 with 775 example:users files (with 'example' I mean owner ids not equal to the current user). I would prefer if only read write permissions would influence move/copy decision (as in dolphin and nautilus). NFS makes it pretty hard to create permission-less and centrally controlled media shares for home networks.

Btw just checked for samba/cifs shares through gvfs and it also gives a copy (permissions: 777 root:root)

Offline

#5 2015-12-22 00:36:42

debianbob
Member
Registered: 2015-12-13
Posts: 2

Re: How to change default thunar drag to move instead of copy?

I wrote a patch for thunar 1.6.3 and 1.6.10. Only line numbers differ. I compiled 1.6.3 in deb format for debian stable and it seemed to work correctly but please check the code because it's my first patch for c++. I have never developed in c++.

thunar 1.6.10:

--- thunar-1.6.10.orig/thunar/thunar-file.c
+++ thunar-1.6.10/thunar/thunar-file.c
@@ -2059,10 +2059,7 @@
                * are on the same disk, and the source file is owned by the current user.
                */
               if (ofile == NULL
-                  || !thunar_file_same_filesystem (file, ofile)
-                  || (ofile->info != NULL
-                      && g_file_info_get_attribute_uint32 (ofile->info,
-                                                           G_FILE_ATTRIBUTE_UNIX_UID) != effective_user_id))
+                  || !thunar_file_same_filesystem (file, ofile))
                 {
                   /* default to copy and get outa here */
                   suggested_action = GDK_ACTION_COPY;


thunar 1.6.3:

--- thunar-1.6.3.orig/thunar/thunar-file.c
+++ thunar-1.6.3/thunar/thunar-file.c
@@ -1945,10 +1945,7 @@
                * are on the same disk, and the source file is owned by the current user.
                */
               if (ofile == NULL
-                  || !thunar_file_same_filesystem (file, ofile)
-                  || (ofile->info != NULL
-                      && g_file_info_get_attribute_uint32 (ofile->info,
-                                                           G_FILE_ATTRIBUTE_UNIX_UID) != effective_user_id))
+                  || !thunar_file_same_filesystem (file, ofile))
                 {
                   /* default to copy and get outa here */
                   suggested_action = GDK_ACTION_COPY;

Last edited by debianbob (2015-12-22 00:38:52)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 10 queries executed - Memory usage: 534.68 KiB (Peak: 535.52 KiB) ]