<?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>380349</bug_id>
          
          <creation_ts>2017-05-30 08:25:34 +0000</creation_ts>
          <short_desc>Some remote (sftp) files are opened via temp-file instead of remote URL although command is &quot;kwrite %u&quot;</short_desc>
          <delta_ts>2018-11-05 21:44:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>17.04.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>397742</dup_id>
          
          <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="H.H.">cyberbeat</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>raul_kde_bugzilla</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>1678403</commentid>
    <comment_count>0</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2017-05-30 08:25:34 +0000</bug_when>
    <thetext>I am not sure, if dolphin is the right product to report against (perhaps kio/kdelibs)?

To reproduce:
1) Open a remote directory like sftp://... in dolphin.

2) Create a file with an extension, which has currently no link to a program (in my case it was a &quot;.less&quot; textfile.

3) In context menu for that file edit the properties, and create a new extension and link a command &quot;kwrite %u&quot; for it.

After that, kwrite is used, but the %u is ignored (it is opened via a temp file as if the command was &quot;kwrite %f&quot;).

This is very uncomfortable, because changes are not uploaded immediatly. So I have to open files everytime with &quot;open with..&quot; and enter &quot;kwrite %u&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681198</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-06-07 16:55:10 +0000</bug_when>
    <thetext>The KWrite .desktop file does not state which URL protocols the KWrite application supports. Could you check if adding this line helps?

X-KDE-Protocols=ftp,http,https,sftp,smb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681213</commentid>
    <comment_count>2</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2017-06-07 17:27:44 +0000</bug_when>
    <thetext>It does not help.

I have some debug output for

a) open the file with my saved settings (using the default open action to open the less file always with kwrite)

...
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;)
log_kio_sftp: username= &quot;...&quot; , host= &quot;...&quot; , port= 22
log_kio_sftp: checking cache: info.username = &quot;...&quot; , info.url = &quot;sftp://...&quot;
log_kio_sftp: Creating the SSH session and setting options
log_kio_sftp: Trying to connect to the SSH server
log_kio_sftp: Getting the SSH server hash
log_kio_sftp: Checking if the SSH server is known
log_kio_sftp: Trying to authenticate with the server
log_kio_sftp: Trying to authenticate with public key
log_kio_sftp: Trying to authenticate with password
log_kio_sftp: Trying to request the sftp session
log_kio_sftp: Trying to initialize the sftp session
log_kio_sftp: connected ? true username: old= &quot;...&quot; new= &quot;...&quot;
Copying QUrl(&quot;sftp://.../test.less&quot;)  to QUrl(&quot;file:///.../.cache/kioexec/krun/11504_0/test.less&quot;)
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;)  -&gt;  QUrl(&quot;file:///.../.cache/kioexec/krun/11504_0/test.less&quot;)  , permissions =  &quot;-1&quot; , overwrite =  QFlags() , resume =  QFlags()                                                  
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;) -&gt; &quot;/.../.cache/kioexec/krun/11504_0/test.less&quot; , permissions= -1                                                                                                                   
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;)  
log_kio_sftp: connected ? true username: old= &quot;...&quot; new= &quot;...&quot;                                                             
log_kio_sftp: enqueueChunks                                                                                                  
log_kio_sftp: enqueueChunks done &quot;1&quot;
log_kio_sftp: enqueueChunks
log_kio_sftp: enqueueChunks done &quot;1&quot;
All files downloaded, will call slotRunApp shortly
EXEC  &quot;/usr/bin/kwrite /.../.cache/kioexec/krun/11504_0/test.less&quot;
EXEC done
sleeping...
...

b) open the file with &quot;open with..&quot; and entering &quot;kwrite %u&quot; manually

...
log_kio_sftp: QUrl(&quot;sftp://...test.less&quot;)  -&gt;  QUrl(&quot;file:///tmp/katepartJ11697.less&quot;)  , permissions =  &quot;384&quot; , overwrite =  QFlags(0x4) , resume =  QFlags()
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;) -&gt; &quot;/tmp/katepartJ11697.less&quot; , permissions= 384
log_kio_sftp: QUrl(&quot;sftp://.../test.less&quot;)
log_kio_sftp: username= &quot;...&quot; , host= &quot;...&quot; , port= 22
log_kio_sftp: checking cache: info.username = &quot;...&quot; , info.url = &quot;sftp://...&quot;
log_kio_sftp: Creating the SSH session and setting options
log_kio_sftp: Trying to connect to the SSH server
log_kio_sftp: Getting the SSH server hash
log_kio_sftp: Checking if the SSH server is known
log_kio_sftp: Trying to authenticate with the server
log_kio_sftp: Trying to authenticate with public key
log_kio_sftp: Trying to authenticate with password
log_kio_sftp: Trying to request the sftp session
log_kio_sftp: Trying to initialize the sftp session
log_kio_sftp: Trying to initialize the sftp session
log_kio_sftp: connected ? true username: old= &quot;...&quot; new= &quot;...&quot;
log_kio_sftp: enqueueChunks
log_kio_sftp: enqueueChunks done &quot;1&quot;
log_kio_sftp: enqueueChunks
log_kio_sftp: enqueueChunks done &quot;1&quot;
log_kio_sftp: 
log_kio_sftp: *** kio_sftp Done

...


Can you reproduce the error? I can reproduce it on 2 different systems (both opensuse)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699347</commentid>
    <comment_count>3</comment_count>
    <who name="Raul Kde Bugzilla">raul_kde_bugzilla</who>
    <bug_when>2017-09-06 14:48:57 +0000</bug_when>
    <thetext>This bug has being around for a long time.
Since kde 4 if I am not mistaken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699482</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-09-07 03:39:20 +0000</bug_when>
    <thetext>*** Bug 384437 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808566</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-11-05 21:44:18 +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>