! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Highlight the file that selected by "openning destination folder"
Status:
RESOLVED: DUPLICATE

Comments

Description FateRover 2018-12-31 16:48:48 CET
please make thunar highlight the file which selected by "openning destination folder" ,qbittorrent  as example,when open thunar  window by "openning destination folder" with right menu of qbit.this will very helpfull
Comment 1 alexxcons editbugs 2018-12-31 18:34:42 CET
Agreed that this would be a nice feature.

Like allways, patches are welcome ;)
Comment 2 Andre Miranda editbugs 2018-12-31 19:45:52 CET
I think the problem is in how qbittorrent (and others) is calling Thunar.
Via D-Bus we have this method: org.xfce.FileManager.DisplayFolderAndSelect (String uri, String filename, String display, String startup_id) which works as expected.

It would be very helpful to find out how Thunar is called, with D-Bus, xdg-open or something else.
Comment 3 FateRover 2019-01-02 09:47:24 CET
well, when mentioned org.xfce.FileManager, there is another issue,when u build your system step by step, debian as  example :

'apt install xorg xfce4-session xfce4-session  nautilus'
when login in graphic desktop ,u can not creat text file on xfce desktop,u must install thunar fully ,oterwise ,  the function of nautilus is incompletely ,that mean ,i have to install two file manager in my os
Comment 4 alexxcons editbugs 2019-01-02 16:50:37 CET
@FateRover
That's a different bug, dedicated to xfdesktop. Please file a separate bug for it / discuss only one bug per bugreport.

Regarding the bug:
I tested with firefox to download a file and than open the containing folder (click on folder icon).
If I select nautilus as preferred application, the file gets selected. So I assume for thunar (or exo) there is room for improvement.

So far I did not check how thunar is called by firefox.
Comment 5 Andre Miranda editbugs 2019-01-03 01:32:15 CET
I took some time to check how the following apps open the folder of a specific file:

Firefox -> Download popover -> Open folder icon
gio-launch-desktop thunar /home/andre/Downloads

IntelliJ IDEA -> Right click on a file on the sidebar -> Show in Open Folder with Thunar
xdg-open /home/andre/projects/java-tests/mberp/src/main/java/br/com/andredlm

Visual Studio Code ->  Right click on a file on the sidebar -> Open Containing Folder
xdg-open /home/andre/projects/xfce/thunar/thunar

Used the method described here:
https://unix.stackexchange.com/a/345021

I didn't see anything interesting going on dbus-monitor.
Comment 6 Andre Miranda editbugs 2019-01-03 01:52:48 CET
Before testing the same scenario with Nautilus, I found the not so surprising org.freedesktop.FileManager1 interface[1]. What is really surprising is that Thunar exposes two interfaces (org.xfce.Thunar and org.xfce.FileManager) but not this one!

I could see Firefox calling org.freedesktop.FileManager1.ShowItems when nautilus was installed, but VSCode and IntelliJ still used xdg-open, so it's their fault the file is not selected. We can't possibly ask all apps out there to use Thunar's interface, if they want good Linux support they must adhere to the standards and so do we.

For this reason I'm closing this bug in favor of Bug 12414 (untested workaround included).

1 - https://www.freedesktop.org/wiki/Specifications/file-manager-interface/

*** This bug has been marked as a duplicate of bug 12414 ***

Bug #15003

Reported by:
FateRover
Reported on: 2018-12-31
Last modified on: 2019-01-03

People

Assignee:
Xfce Bug Triage
CC List:
4 users

Version

Version:
unspecified

Attachments

Additional information