<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>448764</bug_id>
          
          <creation_ts>2022-01-19 11:47:36 +0000</creation_ts>
          <short_desc>KDF should not rely on having Dolphin in runtime</short_desc>
          <delta_ts>2022-01-23 11:49:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdf</product>
          <component>general</component>
          <version>21.12.1</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Snehit Sah">snehitsah</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          <cc>nicolas.fella</cc>
          
          <cf_commitlink>https://invent.kde.org/utilities/kdf/commit/7ca2f908a5dc5285c5b94ae053e32ff0016d1afe</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2095324</commentid>
    <comment_count>0</comment_count>
    <who name="Snehit Sah">snehitsah</who>
    <bug_when>2022-01-19 11:47:36 +0000</bug_when>
    <thetext>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&apos;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 &quot;Open in File Manager&quot;.

OBSERVED RESULT

Nothing happens

EXPECTED RESULT

Disk should open in whichever file manager is available
on user&apos;s system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095610</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2022-01-19 23:06:18 +0000</bug_when>
    <thetext>You can set a file manager in the settings, but yes, it should just open the default one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095613</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2022-01-19 23:19:08 +0000</bug_when>
    <thetext>Since you already know what needs to be done, would you like to submit a patch for it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095863</commentid>
    <comment_count>3</comment_count>
    <who name="Snehit Sah">snehitsah</who>
    <bug_when>2022-01-20 15:11:09 +0000</bug_when>
    <thetext>Thanks for the acknowledgement about opening default file manager. I&apos;ll send a merge request soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095871</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-01-20 15:21:10 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/utilities/kdf/-/merge_requests/4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096693</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-01-22 02:59:30 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/utilities/kdf/-/merge_requests/5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2097124</commentid>
    <comment_count>6</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2022-01-23 11:49:41 +0000</bug_when>
    <thetext>Git commit 7ca2f908a5dc5285c5b94ae053e32ff0016d1afe by Albert Astals Cid, on behalf of Snehit Sah.
Committed on 23/01/2022 at 11:45.
Pushed by aacid into branch &apos;master&apos;.

Add feature to use system default file manager to open drive

Added an option in settings to use system default file manager to
open drives. If selected, KDF will use QDesktopServices to open
disk. If unchecked, KDF will use the previous behaviour of executing
supplied command in settings.

Signed-off-by: Snehit Sah &lt;snehitsah@protonmail.com&gt;

M  +10   -0    src/kdfconfig.cpp
M  +11   -4    src/kdfconfig.ui
M  +7    -1    src/kdfwidget.cpp
M  +16   -0    src/stdoption.cpp
M  +3    -0    src/stdoption.h

https://invent.kde.org/utilities/kdf/commit/7ca2f908a5dc5285c5b94ae053e32ff0016d1afe</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>