https://bugs.kde.org/show_bug.cgi?id=460997

            Bug ID: 460997
           Summary: Highlight downloaded file in file manager using D-Bus
                    org.freedesktop.FileManager1.ShowItems
    Classification: Applications
           Product: Falkon
           Version: unspecified
          Platform: Other
                OS: FreeBSD
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: now...@gmail.com
          Reporter: prob...@puredarwin.org
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to