Change default mount options for external drives to make trash work on external drives

Is it somehow possible to change the mount options used when mounting an external drive via KDE device notifier?

Actually the problem is, that on external drives no .Trash-1000 folder is created, thus all delete to trash operations result in copying the files to the home partition Trash folder, which is quite odd. However, if I mount the drive manually with umask=077, the folder is created and delete to trash works as expected, i.e. it moves the file to trash folder on the same drive.

I would also file a bug, but not sure which component is affected, and also whether it is openSUSE specific, or it is a KDE problem.

My system is Tumbleweed, Plasma 5.8.5, Frameworks 5.29.0.

Whether one sees this as a feature or bug depends on personal preferences. I hardly pay attention to trash, but I’d rather not have trash stored on removable media. Centralized trash is good IMHO. That said I copied the ~/.local/share/Trash folder across to a memory stick and renamed the directory to .Trash-1000. I then proceed to trash some files. They ended up in both trash locations.

A long-running bug report
https://bugs.kde.org/show_bug.cgi?id=76380

One of many similar discussions that can be found on the topic
https://www.reddit.com/r/kde/comments/59cefq/are_there_options_to_manage_how_the_trash_is/

FreeDesktop Specs…
https://specifications.freedesktop.org/trash-spec/trashspec-0.8.html

Actually the problem is, that on external drives no .Trash-1000 folder is created, thus all delete to trash operations result in copying the files to the home partition Trash folder, which is quite odd. However, if I mount the drive manually with umask=077, the folder is created and delete to trash works as expected, i.e. it moves the file to trash folder on the same drive.

If the udisks/DE mounting is used then this is mounted with ‘uid=1000,gid=100,fmask=0022,dmask=0022’. To achieve anything else, you’d need to mount manually with mount or an entry in /etc/fstab.

Doesn’t the uid and the gid there depend upon who is the owner of the session?

Yes, I was assuming default first/only user.