[kdf] [Bug 448764] New: KDF should not rely on having Dolphin in runtime

Snehit Sah bugzilla_noreply at kde.org
Wed Jan 19 11:47:36 GMT 2022


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

            Bug ID: 448764
           Summary: KDF should not rely on having Dolphin in runtime
           Product: kdf
           Version: 21.12.1
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: snehitsah at protonmail.com
  Target Milestone: ---

SUMMARY

KDF currently relies on having Dolphin installed to be able to
open a disk in file explorer. The choice seems to be hardcoded
in source code 

https://invent.kde.org/utilities/kdf/-/blob/master/src/stdoption.cpp#L16

A better way to open local paths might be to use
QUrl::fromLocalFile and pass it to QDesktopServices::openUrl
This will ensure that disk is opened in whichever file manager
is available on user's system, rather than assuming that
Dolphin is always available.

STEPS TO REPRODUCE

Install KDF on a system without Dolphin. In KDF, right click
on a disk and select "Open in File Manager".

OBSERVED RESULT

Nothing happens

EXPECTED RESULT

Disk should open in whichever file manager is available
on user's system.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list