Reply to topic

Dolphin can't move deleted files to .trash-1000 on ntfs

fmeier
Registered Member
Posts
32
Karma
0
hi,

i've a multi boot system with kubuntu and windows 7 and the most files are stored on a ntfs partition that is mounted via fstab:

UUID=2480A38132885004 /media/ntfs ntfs defaults,uid=1000,gid=1000 0 0

my uid and gid is 1000.

for me dolphin is the best file manager. the problem is, that dolphin is the only file manager that can't move deleted files on ntfs partitions to the folder .trash-1000. dolphin copies the files to the trash-folder on my home partition. with thunar and others the files are moved to .trash-1000. so it works - but not with dolphin. is this a known problem? i've read in a thread from 2014 in an other forum that this is a problem with the 'kio'.

fmeier
fmeier
Registered Member
Posts
32
Karma
0
no idea? does no one use dolphin with ntfs partitions?
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
I'm sorry but I don't quite understand the problem here. Could you post the different paths of where thunar and dolphin chuck their rubbish? Perhaps that makes things clearer.


Debian testing
fmeier
Registered Member
Posts
32
Karma
0
The problem is that dolphin don't use the folder .Trash-1000 and Thunar does. There is no different path for the both programs. I have to create the folder '.Trash-1000' (when 1000 is the uid) and then this folder is used as trash on the ntfs partition. when i doesn't exist the 'trash folder' in home is used (that means, after deleting a file/folder on ntfs the file/folder is moved to home). the problem is: this works with thunar but not with dolphin. both should use the same folder (ntfs-mountpoint/.Trash-1000).

but i don't like thunar and there is no other file manager than dolphin (for me).
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
I still don't understand. If there is no different path to trash for both programmes, then by definition they use the same one.

The difference between the two file managers is probably the fact that Dolphin uses KIO slaves, whereas the GTK based Thunar uses GVFS. Unfortunately I am not too familiar with the use KIO slaves but perhaps google may be helpful.


Debian testing
fmeier
Registered Member
Posts
32
Karma
0
I still don't understand. If there is no different path to trash for both programmes, then by definition they use the same one.


That is the problem. Dolphin should use the folder .Trash-1000, but it doesn't. The folder exists but Dolphin is moving deleted files and folders to the trash in the home dir and not in .trash-1000.
wolfi323
Registered Member
Posts
1121
Karma
11
OS
fmeier wrote:That is the problem. Dolphin should use the folder .Trash-1000, but it doesn't. The folder exists but Dolphin is moving deleted files and folders to the trash in the home dir and not in .trash-1000.

That works fine with removable media.

But apparently for a fixed mount (via fstab) it (KIO) doesn't detect that it's a different partition and moves it to the standard trash in the home directory.
fmeier
Registered Member
Posts
32
Karma
0
How can i fix that?
wolfi323
Registered Member
Posts
1121
Karma
11
OS
fmeier wrote:How can i fix that?

Download the source code, look and understand what it does, and change it accordingly. Then compile and install it... ;)

Or don't mount the drive via fstab, but via the device manager. Though I don't know if that would change it in this case.

Personally I prefer to avoid the trash completely anyway.
If I delete something, I do so to free the space.
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
One possibility would be to run a cron job to move everything in your home trash to the desired location on your other hard drive every other hour or so.


Debian testing
fmeier
Registered Member
Posts
32
Karma
0
Or don't mount the drive via fstab, but via the device manager. Though I don't know if that would change it in this case.


I#ve tested this with an usb stick, but doesn't work.
wolfi323
Registered Member
Posts
1121
Karma
11
OS
fmeier wrote:
Or don't mount the drive via fstab, but via the device manager. Though I don't know if that would change it in this case.


I#ve tested this with an usb stick, but doesn't work.

How are you mounting it?

It works fine here, when I "delete" a file on an USB stick, it gets moved to the folder ~/.Trash-1000 on this USB stick.
fmeier
Registered Member
Posts
32
Karma
0
wolfi323 wrote:How are you mounting it?


I don't know exactly. i've disabled kde-automount and there is no entry in fstab for the usb stick. but after plugin in the stick i can mount it by clicking on the entry i can see in dolphin / devices. so i think dolphin mounts the stick, but i'm not sure.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], davide445, davis, ghevan, Google [Bot], robson, Sogou [Bot], TechnoJunky, voidfragment, Yahoo [Bot]