<?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>291177</bug_id>
          
          <creation_ts>2012-01-10 15:04:27 +0000</creation_ts>
          <short_desc>XML-based files are opened with the default browser instead of the associated application</short_desc>
          <delta_ts>2014-04-11 16:08:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>Git</version>
          <rep_platform>Arch Linux</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="Ovidiu D. Niţan">nitanovidiu</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>adaptee</cc>
    
    <cc>adawit</cc>
    
    <cc>Alissa.Kvashina</cc>
    
    <cc>alpha_one_x86</cc>
    
    <cc>alx5000</cc>
    
    <cc>carlodoro88</cc>
    
    <cc>cfeck</cc>
    
    <cc>chagam</cc>
    
    <cc>ctibor.brancik</cc>
    
    <cc>cyberbeat</cc>
    
    <cc>dode</cc>
    
    <cc>dweeble01103</cc>
    
    <cc>flanello</cc>
    
    <cc>hugo.costelha</cc>
    
    <cc>info</cc>
    
    <cc>Jens.Rutschmann</cc>
    
    <cc>kari.lehtinen</cc>
    
    <cc>kofeka</cc>
    
    <cc>mogliii</cc>
    
    <cc>mschoepf</cc>
    
    <cc>oli</cc>
    
    <cc>ozbekanil</cc>
    
    <cc>pascal</cc>
    
    <cc>paulo.fidalgo.pt</cc>
    
    <cc>rael.gc</cc>
    
    <cc>rakuco</cc>
    
    <cc>rotave</cc>
    
    <cc>someuniquename</cc>
    
    <cc>tcppmm</cc>
    
    <cc>yusuf.aydemir</cc>
          
          <cf_commitlink>http://commits.kde.org/kdelibs/d4af904d455c8348d128568f87beb4f74099578e</cf_commitlink>
          <cf_versionfixedin>4.9.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>196</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1212491</commentid>
    <comment_count>0</comment_count>
    <who name="Ovidiu D. Niţan">nitanovidiu</who>
    <bug_when>2012-01-10 15:04:27 +0000</bug_when>
    <thetext>Version:           unspecified (using Devel) 
OS:                Linux

It seems that setting a web browser in System Settings - Default Applications - Web browser makes KDE to open XML-based files in browser, even if there&apos;s another application associated with that file type. Dolphin, kde-open or xdg-open are affected by this bug. Surprising Konqueror isn&apos;t affected by this issue.

Reproducible: Didn&apos;t try

Steps to Reproduce:
1. Open System Settings, go to Default Applications -&gt; Web browser, check &quot;in the following browser:&quot; radio button and fill the entry with a browser name.
2. Try to open with Dolphin a XML-based file (I tried with a .cbp CodeBlocks project). The web browser will be launched and will probably offer you to &quot;download&quot; that file. The same thing is happening if you run kde-open /path/to/file or xdg-open /path/to/file.

Actual Results:  
The file is opened in webbrowser

Expected Results:  
The file should be opened with the application defined in File Associations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1212522</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-01-10 15:53:42 +0000</bug_when>
    <thetext>Could you check if the commit for bug 290936 fixes it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219417</commentid>
    <comment_count>2</comment_count>
    <who name="Ovidiu D. Niţan">nitanovidiu</who>
    <bug_when>2012-01-27 15:33:21 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Could you check if the commit for bug 290936 fixes it?

Nope. I&apos;m on KDE 4.8 now and this issue already exists...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221278</commentid>
    <comment_count>3</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-01-31 15:42:03 +0000</bug_when>
    <thetext>*** Bug 292857 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221840</commentid>
    <comment_count>4</comment_count>
    <who name="Martux">mschoepf</who>
    <bug_when>2012-02-01 21:26:19 +0000</bug_when>
    <thetext>I am also affected by this. For me it&apos;s .nzb files. Application settings are ignored and always a webbrowser is opened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221975</commentid>
    <comment_count>5</comment_count>
    <who name="Mark">rotave</who>
    <bug_when>2012-02-02 07:31:15 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I am also affected by this. For me it&apos;s .nzb files. Application settings are
&gt; ignored and always a webbrowser is opened.

Can confirm that the above is also affecting me for .nzb files. Only started happening with KDE 4.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228050</commentid>
    <comment_count>6</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2012-02-18 08:10:05 +0000</bug_when>
    <thetext>This is because the browser you specified, which probably is Firefox, supports opening XML files and advertises as such. Only my system firefox.desktop contains the following entry:

MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;

Unfortunately, when you attempt to launch something the KDE launcher first checks to see if external browser are defined and whether or not those browsers are capable of handling the requested resource. If that is, the document is launched with the external browser. Konqueror&apos;s desktop files do not contain any text/xml in their MimeType entry and as such are not affected by this problem.

Anyhow, this issue is caused by the same code that causes another closely related bug# 182591. When that bug is addressed eventually, this one will probably get resolved as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228053</commentid>
    <comment_count>7</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-02-18 08:36:35 +0000</bug_when>
    <thetext>*** Bug 294112 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234651</commentid>
    <comment_count>8</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-03-10 16:44:22 +0000</bug_when>
    <thetext>*** Bug 295665 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237969</commentid>
    <comment_count>9</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2012-03-19 08:35:00 +0000</bug_when>
    <thetext>I am also affected, for example .odt files are opened with chromium instead of libreoffice (the first choice in &quot;open-with&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238616</commentid>
    <comment_count>10</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-03-20 23:21:22 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; This is because the browser you specified, which probably is Firefox,
&gt; supports opening XML files and advertises as such. Only my system
&gt; firefox.desktop contains the following entry:
&gt; 
&gt; MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.
&gt; xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
&gt; 
&gt; Unfortunately, when you attempt to launch something the KDE launcher first
&gt; checks to see if external browser are defined and whether or not those
&gt; browsers are capable of handling the requested resource. If that is, the
&gt; document is launched with the external browser. Konqueror&apos;s desktop files do
&gt; not contain any text/xml in their MimeType entry and as such are not
&gt; affected by this problem.
&gt; 
&gt; Anyhow, this issue is caused by the same code that causes another closely
&gt; related bug# 182591. When that bug is addressed eventually, this one will
&gt; probably get resolved as well.

Hi,
I&apos;m also affected by this and modified /usr/share/applications/firefox.desktop to not contain text/xml (which by the way does not match the real mimetype &quot;application/xml&quot;).

Unfortunately this didn&apos;t help. For now I did not specify a default browser at all - which works.

Is there a better workaround ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238618</commentid>
    <comment_count>11</comment_count>
    <who name="Ovidiu D. Niţan">nitanovidiu</who>
    <bug_when>2012-03-20 23:24:25 +0000</bug_when>
    <thetext>Yes, I also tried by creating a script which just call my favourite browser and passes all received arguments (so no .desktop file for it). After I set it up in the System Settings as my default browser, but XML files are still opened with the web browser (in fact, with my script) instead of the associated application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1239493</commentid>
    <comment_count>12</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-03-24 12:18:48 +0000</bug_when>
    <thetext>Is there anyone looking into this? I&apos;d be glad to test any patches / provide more info.
Unfortunately I don&apos;t have any development experience in C++/Qt and the KDE platform itself and have no idea to where to start looking into this, otherwise I&apos;d might try it myself.

This bug is really annoying since I right now I have to decide between:
- being able to double-click XML files (which I need very often)
- being able to click on links in akregrator / skype, etc. (which I also do quite often)

Furthermore, is this really a bug in Konqueror, since this issue is associated with the &quot;Konquerer&quot; product.

Again, if I can do anything to help fixing this, just ask.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1239589</commentid>
    <comment_count>13</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2012-03-24 21:04:52 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1244912</commentid>
    <comment_count>14</comment_count>
    <who name="Paulo Fidalgo">paulo.fidalgo.pt</who>
    <bug_when>2012-04-11 10:45:22 +0000</bug_when>
    <thetext>This don&apos;t happens only on Konqueror, with Dolphin I have the same behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1253015</commentid>
    <comment_count>15</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-05-07 21:20:58 +0000</bug_when>
    <thetext>Apparently it even occurs in Ark, when I double-click an XML file inside a ZIP, JAR, etc.
Instead of using the kate part it uses the konqueror part for the preview which is not helpful at all.

This is driving me nuts, does anyone have an idea where to start looking for the issue ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254929</commentid>
    <comment_count>16</comment_count>
    <who name="Torsten Römer">dode</who>
    <bug_when>2012-05-15 09:42:35 +0000</bug_when>
    <thetext>I have a clean new installation of kubuntu 12.04 and configured KDE to open XML files with kate or kwrite, and it keeps on opening them with rekonq. When I uninstall rekonq, it complains that it is not installed and then opens the file with kwrite.
Only when I change the standard webbrowser from rekonq to &quot;an application that is based on url contents&quot; it finally works.
This is very confusing, because the standard browser setting mentions only http and https urls, so why does it affect XML files?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254933</commentid>
    <comment_count>17</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2012-05-15 10:03:05 +0000</bug_when>
    <thetext>this bug seems fixed for me in dolphin kde/4.8.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1254934</commentid>
    <comment_count>18</comment_count>
    <who name="Ovidiu D. Niţan">nitanovidiu</who>
    <bug_when>2012-05-15 10:04:28 +0000</bug_when>
    <thetext>Not for me: still occurs in KDE 4.8.3 (Dolphin)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255604</commentid>
    <comment_count>19</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-05-17 10:26:25 +0000</bug_when>
    <thetext>Not fixed for me as well (Gentoo, KDE 4.8.3)
Still the same behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255991</commentid>
    <comment_count>20</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-05-17 21:28:05 +0000</bug_when>
    <thetext>*** Bug 300208 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260219</commentid>
    <comment_count>21</comment_count>
    <who name="Anton Kropachev">tcppmm</who>
    <bug_when>2012-05-29 21:31:46 +0000</bug_when>
    <thetext>Not fixed. (Gentoo, KDE 4.8.3)
Problem with *.fb2 files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265773</commentid>
    <comment_count>22</comment_count>
    <who name="bill p. (aka google01103)">dweeble01103</who>
    <bug_when>2012-06-14 12:51:25 +0000</bug_when>
    <thetext>can confirm still problem in 4.9beta</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265775</commentid>
    <comment_count>23</comment_count>
    <who name="">mogliii</who>
    <bug_when>2012-06-14 13:03:01 +0000</bug_when>
    <thetext>Also .svg from Dolphin in Kubuntu 12.04, 4.8.3. Not using inkscape as it should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265776</commentid>
    <comment_count>24</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-06-14 13:06:22 +0000</bug_when>
    <thetext>I&apos;m also experiencing the following probably related issue:

When I open a ZIP / JAR file in Ark and double click an included XML file, then the Konqueror kpart seems to be used for the preview instead of the text editor kpart.

Did anyone else observe this as well ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269987</commentid>
    <comment_count>25</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-06-26 12:09:44 +0000</bug_when>
    <thetext>*** Bug 302549 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1272968</commentid>
    <comment_count>26</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-07-05 15:05:27 +0000</bug_when>
    <thetext>*** Bug 303068 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1273809</commentid>
    <comment_count>27</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-07-07 13:47:44 +0000</bug_when>
    <thetext>*** Bug 291287 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1273882</commentid>
    <comment_count>28</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2012-07-07 19:35:02 +0000</bug_when>
    <thetext>I wonder if bug 201162 could also be marked as a duplicate of this one (even if it&apos;s older, the issue seems to be being tracked further here).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1273930</commentid>
    <comment_count>29</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2012-07-07 23:22:03 +0000</bug_when>
    <thetext>(In reply to comment #28)
&gt; I wonder if bug 201162 could also be marked as a duplicate of this one (even
&gt; if it&apos;s older, the issue seems to be being tracked further here).

It is not entirely the same issue. However, if the user sets their own default browser, then previewing XML files in ark does indeed get broken the same way the scenario mentioned in this bug report.

However, even with the fix proposed for this bug the issue in ark preview will remain unless the user or the distro changes the preference order of embedded parts for XML files types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274131</commentid>
    <comment_count>30</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2012-07-08 17:17:39 +0000</bug_when>
    <thetext>Git commit d4af904d455c8348d128568f87beb4f74099578e by Dawit Alemayehu.
Committed on 07/07/2012 at 21:08.
Pushed by adawit into branch &apos;KDE/4.9&apos;.

Do not use the user&apos;s default browser configuration to open XML files.
FIXED-IN: 4.9.0
REVIEW: 105476

M  +3    -3    kio/kio/krun.cpp

http://commits.kde.org/kdelibs/d4af904d455c8348d128568f87beb4f74099578e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274205</commentid>
    <comment_count>31</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-07-08 21:35:25 +0000</bug_when>
    <thetext>(In reply to comment #30)
&gt; Git commit d4af904d455c8348d128568f87beb4f74099578e by Dawit Alemayehu.
&gt; Committed on 07/07/2012 at 21:08.
&gt; Pushed by adawit into branch &apos;KDE/4.9&apos;.
&gt; 
&gt; Do not use the user&apos;s default browser configuration to open XML files.
&gt; FIXED-IN: 4.9.0
&gt; REVIEW: 105476
&gt; 
&gt; M  +3    -3    kio/kio/krun.cpp
&gt; 
&gt; http://commits.kde.org/kdelibs/d4af904d455c8348d128568f87beb4f74099578e

I applied the patch on top of 4.8.3 and XML based files are opened correctly when double-clicked in dolphin.
But in Ark those files are still previewed with the konqueror kpart. Do I need to update some config file for that ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274227</commentid>
    <comment_count>32</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2012-07-08 23:55:44 +0000</bug_when>
    <thetext>(In reply to comment #31)
&gt; I applied the patch on top of 4.8.3 and XML based files are opened correctly
&gt; when double-clicked in dolphin.
&gt; But in Ark those files are still previewed with the konqueror kpart. Do I
&gt; need to update some config file for that ?

Please see Dawit&apos;s comment #29 and the comments in bug 201162 -- to open things correctly in Ark you need to go to System Settings, choose File Associations, choose the &quot;application/xml&quot; mimetype and put Katepart before the browser KParts in the &quot;Embedding&quot; tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274284</commentid>
    <comment_count>33</comment_count>
    <who name="Jens Rutschmann">Jens.Rutschmann</who>
    <bug_when>2012-07-09 07:40:27 +0000</bug_when>
    <thetext>Thanks, I forgot about the embedded tab. 
FIXED :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293700</commentid>
    <comment_count>34</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-09-02 10:57:47 +0000</bug_when>
    <thetext>*** Bug 295296 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293702</commentid>
    <comment_count>35</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-09-02 10:58:48 +0000</bug_when>
    <thetext>*** Bug 306085 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297880</commentid>
    <comment_count>36</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-09-17 08:18:12 +0000</bug_when>
    <thetext>*** Bug 306786 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1301573</commentid>
    <comment_count>37</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-09-29 20:15:10 +0000</bug_when>
    <thetext>*** Bug 307579 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365324</commentid>
    <comment_count>38</comment_count>
    <who name="Rael Gugelmin Cunha">rael.gc</who>
    <bug_when>2013-04-30 16:29:46 +0000</bug_when>
    <thetext>I&apos;m using KDE 4.10.2 and my default browser (Chrome) is still trying open a lot of documents NOT configured for it (like .doc files, by example).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440884</commentid>
    <comment_count>39</comment_count>
    <who name="Hugo Costelha">hugo.costelha</who>
    <bug_when>2014-04-11 16:08:35 +0000</bug_when>
    <thetext>Opening System Settings --&gt; Default Applications --&gt; Web Browser (on the left) and changing &quot;Open hhtp and https URLs&quot; &quot;in an application based on the contents of the URL&quot;, together with the &quot;associations&quot; changes solved the issue for me. This, however, seems very non intuitive.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>