Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#71412 - [thunar] %F no longer works in sendto

Attached to Project: Arch Linux
Opened by Lacsap (lacsap) - Thursday, 01 July 2021, 07:52 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 05 July 2021, 04:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



I have a sendto (~/.local/share/Thunar/sendto/test.desktop) that should be launched with a list of files but I end up with the sendto launched as many times as there are files in the list.
it worked perfectly before.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

$ # micro is a terminal text editor
$ cat > .local/share/Thunar/sendto/test.desktop <<~~~~
[Desktop Entry]
Exec=lxterminal -t test -e micro %F
$ # a new test entry appears in thunar sendto
$ # select two files and send them to test
$ # two terminals are launched in which micro edits only one file, while only one terminal should be launched in which micro edits both files.
This task depends upon

Comment by loqs (loqs) - Friday, 02 July 2021, 00:36 GMT Comment by Lacsap (lacsap) - Friday, 02 July 2021, 12:58 GMT
yes I do.
but I am not a developer and I just did some research around the terms `send to`, `send-to` and `sendto`.
I saw this commit _(Dont execute files, passed via command line due to security risks)_ and didn't think of the `send to` function, but rather the launch of Thunar with parameters.
this being said, the code changes you point out are responsible for this new behavior ? is that it ?
in my case, I don't want to **execute** the selected files, but just open them (pass them as parameters) with the Micro editor : do I get the previous behavior back if I revert these small changes ?
Comment by Lacsap (lacsap) - Friday, 02 July 2021, 13:24 GMT
hi again,
I just looked at the changes you point out and they seem to be more related to the execution of Thunar (eg. thunar /path/to/picture.jpg).
they are related to this issue
note that the same command (lxterminal -t test -e micro %F) used for a custom action results in the desired behavior (one lxterminal/micro that opens both files simultaneously).
Comment by loqs (loqs) - Friday, 02 July 2021, 23:43 GMT
Downgrading to thunar 4.16.7-1 or 4.16.6-1 is the issue present?
Does rebuilding thunar after applying the attached diff still have the issue?
Comment by Evangelos Foutras (foutrelis) - Monday, 05 July 2021, 04:26 GMT
Filed an upstream issue:

Based on my testing, this used to work in Xfce 4.14 (so about a year ago).
Comment by Lacsap (lacsap) - Monday, 05 July 2021, 09:29 GMT
Thunar 4.16.6 as the same issue (4.16.7 has not been tested).
rebuilding 4.16.8 with patched PKGBUILD does not change the incorrect "Send To" behavior.
regards, lascaP.