| Summary: | Highlight downloaded file in file manager using D-Bus org.freedesktop.FileManager1.ShowItems | ||
|---|---|---|---|
| Product: | [Applications] Falkon | Reporter: | probono <probono> |
| Component: | general | Assignee: | Juraj <jurajoravec> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jurajoravec |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | FreeBSD | ||
| Latest Commit: | https://invent.kde.org/network/falkon/-/commit/47bafc19b7fc5434f08b5c8ea7140f7056357ab4 | Version Fixed/Implemented In: | 25.12.0 |
| Sentry Crash Report: | |||
*** Bug 442712 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/network/falkon/-/merge_requests/87 Git commit 37441945c43c2b20b5a79a9675ac0fc1be1220ff by Juraj Oravec. Committed on 06/11/2024 at 22:07. Pushed by jurajo into branch 'master'. Use KIO::OpenFileManagerWindowJob to open folder FIXED-IN: 24.12.0 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com> M +5 -4 CMakeLists.txt M +1 -0 src/lib/CMakeLists.txt M +4 -16 src/lib/downloads/downloaditem.cpp M +30 -0 src/lib/tools/qztools.cpp M +2 -0 src/lib/tools/qztools.h https://invent.kde.org/network/falkon/-/commit/37441945c43c2b20b5a79a9675ac0fc1be1220ff The first implementation with KIO would bring too many required dependencies. A possibly relevant merge request was started @ https://invent.kde.org/network/falkon/-/merge_requests/140 Git commit 47bafc19b7fc5434f08b5c8ea7140f7056357ab4 by Juraj Oravec. Committed on 13/09/2025 at 09:43. Pushed by jurajo into branch 'master'. Add DBus implementation to openFolder FIXED-IN: 25.12.0 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com> M +37 -0 src/lib/downloads/downloaditem.cpp M +5 -0 src/lib/downloads/downloaditem.h https://invent.kde.org/network/falkon/-/commit/47bafc19b7fc5434f08b5c8ea7140f7056357ab4 |
SUMMARY When double-clicking on a downloaded file in the Downloads window, the file manager should open the window that contains the file and highlight the file. STEPS TO REPRODUCE 1. Download a file 2. From the Downloads window, double-click the downloaded file OBSERVED RESULT Currently it only opens the folder without highlighting the file. EXPECTED RESULT When double-clicking on a downloaded file in the Downloads window, the file manager should open the window that contains the file and highlight the file. SOFTWARE/OS VERSIONS Falkon 3.2.0 package on FreeBSD 13.1 ADDITIONAL INFORMATION To achieve this, D-Bus org.freedesktop.FileManager1.ShowItems can be used. Example: % dbus-send --session \ --print-reply \ --dest=org.freedesktop.FileManager1 \ /org/freedesktop/FileManager1 \ org.freedesktop.FileManager1.ShowItems \ array:string:"file:/etc/os-release" string:"" This should open the file manager at /etc and highlight the os-release file. Of course this can be done in Qt rather than using the dbus-send command line tool; the above is just an example to illustrate the concept. If D-Bus is not available or the call fails, then Falkon could always fall back to the current method of opening the folder.