Skip to content

Thunar does not respect %f for "robust" (.desktop) actions

Submitted by Khazar

Assigned to Jannis Pohlmann

Link to original bug (#9386)

Description

Created attachment 4673 A .desktop file of Xfmedia

I am using Xfmedia which has two .desktop actions included.

[Desktop Entry] ... Name=Xfmedia Comment=Lightweight Media Player Exec=xfmedia %F ... Actions=Enqueue;Enqueue and Play;

[Desktop Action Enqueue] Exec=xfmedia-remote -a %f Name=Enqueue in Xfmedia

[Desktop Action Enqueue and Play] Exec=xfmedia-remote -p -a %f Name=Enqueue and play with Xfmedia

While lower-case indicates of selections of one item, upper-case indicates of selection of multiple items.

%f the path of the first selected file %F the paths to all selected files

Thunar does not distinguish cases.

According to the desktop file of Xfmedia, on selection of several files, only Open with "Xfmedia" should appear and the robust action entries "Enqueue in Xfmedia" and "Enqueue and play with Xfmedia" should not. This is exactly how the appearance of actions managed in Custom Actions is occurring as there is a segregation for %f and %F for Custom Actions.

Attachment 4673, "A .desktop file of Xfmedia":
xfmedia.desktop

Version: 1.4.0