<?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>397704</bug_id>
          
          <creation_ts>2018-08-21 13:00:31 +0000</creation_ts>
          <short_desc>KIOExec: A folder named .cache/kioexec/krun/&lt;number&gt;_0/ already exists.</short_desc>
          <delta_ts>2018-11-05 21:42:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>5.45.0</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>397742</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=369122</see_also>
          <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>0</everconfirmed>
          <reporter name="ederag">edera</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>pbotloh</cc>
          
          <cf_commitlink></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>1773259</commentid>
    <comment_count>0</comment_count>
    <who name="ederag">edera</who>
    <bug_when>2018-08-21 13:00:31 +0000</bug_when>
    <thetext>This looks like bug #369122, except it occurs for any link,
in kmail, or even a simple url shortcut on the desktop.
This is probably a duplicate of bug #393673,
but easier to find since here the error is in english.

rm -r ~/.cache
does not solve anything, even after a logout.

With a new user, it works.
So something is wrong in my configuration.
But it would be better to diagnose the issue.

inspired by https://bugs.kde.org/show_bug.cgi?id=343329#c4:
/usr/lib64/libexec/kf5/kioexec cat ftp://ftp.gnu.org/README
command= &quot;cat&quot; args= (&quot;cat&quot;, &quot;ftp://ftp.gnu.org/README&quot;)
Copying QUrl(&quot;ftp://ftp.gnu.org/README&quot;)  to QUrl(&quot;file:///home/ederag/.cache/kioexec/krun/23201_0/README&quot;)
&lt;fine README content&gt;

So this is perhaps not a kioexec issue ?

This does not seem related to firefox either, since
/usr/lib64/libexec/kf5/kioexec firefox ftp://ftp.gnu.org/README
opens the README in firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773372</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-08-21 21:08:41 +0000</bug_when>
    <thetext>*** Bug 393673 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773374</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-08-21 21:09:03 +0000</bug_when>
    <thetext>In what apps do you experience this? Everything?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773422</commentid>
    <comment_count>3</comment_count>
    <who name="ederag">edera</who>
    <bug_when>2018-08-21 23:26:46 +0000</bug_when>
    <thetext>Tested in kmail, dolphin, and a link on the desktop.
Also happens after selecting some text in okular,
and right click&gt;search for ... in duckduckgo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773496</commentid>
    <comment_count>4</comment_count>
    <who name="ederag">edera</who>
    <bug_when>2018-08-22 12:19:10 +0000</bug_when>
    <thetext>Another clue: the behavior depends on the  link:
for links like

https://bitbucket.org/me_ydv_5/octave/wiki/Home
firefox opens with file:///home/ederag/.cache/kioexec/krun/16436_0/Home
in the url bar.
For https://bitbucket.org/me_ydv_5/octave/wiki
it opens with file:///home/ederag/.cache/kioexec/krun/16471_0/wiki
For https://bitbucket.org/me_ydv_5/octave/wiki/  (mind the ending slash),
error KIOExec: 
&quot;A folder named /home/ederag/.cache/kioexec/krun/16497_0/ already exists.&quot;

System Settings&gt;Default applications&gt;Web Browser&gt;open http and https:
changing the existing command: 
firefox
=&gt;
firefox &quot;%u&quot;
solved it.

This is definitely not a KIO bug.
Closing as resolved, moved to opensuse
https://bugzilla.opensuse.org/show_bug.cgi?id=1105623</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774731</commentid>
    <comment_count>5</comment_count>
    <who name="ederag">edera</who>
    <bug_when>2018-08-28 12:27:10 +0000</bug_when>
    <thetext>&gt; firefox &quot;%u&quot; solved it.

Not quite: urls are opened twice.
firefox opens a new window, with two tabs holding the same urls.
Removing the &quot;%u&quot; (i.e. back to the previous buggy state),
the urls open normally, just once, in an already existing window.
looks like a [2009 thread](https://forum.kde.org/viewtopic.php?t=39446).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808556</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-11-05 21:42:43 +0000</bug_when>
    <thetext>Fixed in Frameworks 5.51 with the fix for 397742.

*** This bug has been marked as a duplicate of bug 397742 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>