Thunar skips user customizable actions on remote filesystems. However there's no real reason for this; the patch that does this is part of a five-year old commit. I suspect the reason is that this did not work with the old Thunar VFS, but it works fine now with GIO. I'm attaching a patch which removes the local check.
Created attachment 3692 thunar-enable-remote-uca.patch
Extending UCA to other URI schemes is not as straight-forward as it seems. Most custom actions do not support URIs yet. %u and %U are supported but not documented. This information needs to be added to the UCA edit dialog. It is unclear whether we should expand %d, %D, %f and %F to URIs. Changing the behavior of these placeholders might break existing custom actions, so I think we have to introduce URI alternatives for %d and %D at least. This is even more important as some URIs and URI schemes cannot be converted to local paths, even if gvfs-fuse is available. So e.g. for some trash:// smb:// URIs (generally all URIs for which g_file_get_path() returns NULL), only custom actions that support URI parameters should be displayed.
*** Bug 7305 has been marked as a duplicate of this bug. ***
Patch proposed in a duplicate: https://bugzilla.xfce.org/attachment.cgi?id=3482&action=diff
*** Bug 10635 has been marked as a duplicate of this bug. ***
*** Bug 7936 has been marked as a duplicate of this bug. ***
(In reply to Jérôme Guelfucci from comment #4) > Patch proposed in a duplicate: > https://bugzilla.xfce.org/attachment.cgi?id=3482&action=diff I can confirm this patch as working.
+1, v1.6.3 (Debian Jessie)
PS: Thanks, Ambroz!!
The patch from some duplicate doesn't seem to work for me?
(In reply to Harald Judt from comment #10) > The patch from some duplicate doesn't seem to work for me? Hmm, weird. It works very well for me. I just discovered a case that's not covered by this patch however. The "Image" tab in file properties of pictures is shown only for local files, even with the patch.
Ambroz Bizjak referenced this bugreport in commit eb0fa0aa0944cef940533acdf4752fed5feb68e4 Thunar User Configurable Actions do not work for remote locations (bug #7652), patch from (bug#7305) https://git.xfce.org/xfce/thunar/commit?id=eb0fa0aa0944cef940533acdf4752fed5feb68e4
Ambroz Bizjak referenced this bugreport in commit 46b4f0212f72b0971bfd49f9c9610285d60e0f0b Thunar User Configurable Actions do not work for remote locations (bug #7652), patch from (bug#7305) https://git.xfce.org/xfce/thunar/commit?id=46b4f0212f72b0971bfd49f9c9610285d60e0f0b
@Ambroz Bizjak Thanks alot for the patch and sorry for the very very late reply ! I just tested the patch, and for me it works flawlessly, so I pushed it to: - branch master, to be released as thunar 1.8.0 - branch xfce-4.12, to be released as thunar 1.6.15
*** Bug 14344 has been marked as a duplicate of this bug. ***