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 Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

hi,
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.
regards.

Additional info:
* package version(s)
4.16.8
* 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]
Type=Application
Version=1.0
Encoding=UTF-8
Exec=lxterminal -t test -e micro %F
Icon=postr
Name=test
~~~~
$ # 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

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:16 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/thunar/issues/1
Comment by loqs (loqs) - Friday, 02 July 2021, 00:36 GMT Comment by Lacsap (lacsap) - Friday, 02 July 2021, 12:58 GMT
hi,
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 ?
regards.
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 https://gitlab.xfce.org/xfce/thunar/-/issues/121
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).
regards.
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: https://gitlab.xfce.org/xfce/thunar/-/issues/609

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
hi,
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.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...