Bug 62167

Summary: user modified .desktop (quanta) preferred over system default with InitialPreference (konqueror) for text/html
Product: quanta Reporter: Roger Larsson <roger.larsson>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED    
Severity: normal CC: faure
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Roger Larsson 2003-08-05 12:10:56 UTC
Version:           2.0 (using KDE 3.1.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

Suddenly my autostart webpages were opened in quanta (failed btw)

I have found out that this is because I had this file

more ~/.kde/share/applnk/Development/quanta.desktop
[Desktop Entry]
Categories=Qt;KDE;Development
Comment=Web Development Environment
DocPath=quanta/index.html
Encoding=UTF-8
Exec=quanta
Icon=quanta
MimeType=text/html;Application [";Application" was added - why?]
Name=Quanta Plus
ServiceTypes=				   [this line is added - why?]
Type=Application

It says nothing about InitialPreference but I guess that since it is
local it is preferred over the global konqueror...

To test this you have to remove all other local config files like
~/.local/share/applications/kde/kfmclient_html.desktop

In some way I think that the design with local .desktop copies is wrong...

Example: Selecting the offending Quanta and moving it down will
create a local copy of kfmclient_html.desktop - why? It was Quanta that I modified...

I would prefere a simple remapping/reordering file (config file for
kcmfiletypes, one per mime type?) that more closely matched the actual changes.
Comment 1 Roger Larsson 2003-08-11 19:39:53 UTC
Further testing revealed: 
If I add a InitialPreference of 8 to the global quanta.desktop 
(or to my local, but global is preferred) then the problem goes away. 
 
So, this is really a quanta problem, but all applications should update to 
have a InitialPreference field. 
 
Index: quanta/quanta.desktop 
=================================================================== 
RCS file: /home/kde/quanta/quanta/quanta.desktop,v 
retrieving revision 1.16 
diff -u -3 -p -r1.16 quanta.desktop 
--- quanta/quanta.desktop       7 Aug 2003 04:47:42 -0000       1.16 
+++ quanta/quanta.desktop       11 Aug 2003 17:38:42 -0000 
@@ -6,6 +6,7 @@ Exec=quanta 
 Icon=quanta 
 Type=Application 
 MimeType=text/html 
+InitialPreference=8 
 DocPath=quanta/index.html 
 Comment=Web Development Environment 
 Comment[fa]=
Comment 2 Waldo Bastian 2003-08-11 23:04:49 UTC
Subject: Re: [BUG:62167] Re: quanta preferred over konqueror for autostart items - generic MIME configuration problem...

On Monday 11 August 2003 21:29, Waldo Bastian wrote:
> On Monday 11 August 2003 19:09, Roger Larsson wrote:
> > quanta does not have any InitialPreference field.
> > The problem does only happen when you have a modified quanta.desktop in
> > your home directory. My guess is that local desktop files are preferred
> > over global
> >
> > http://bugs.kde.org/show_bug.cgi?id=62167
>
> Will look into it.

Fixed, please update kdelibs/kio

Cheers,
Waldo

Comment 3 David Faure 2003-08-12 12:32:32 UTC
Subject: Re:  user modified .desktop (quanta) preferred over system default with InitialPreference (konqueror) for text/html

On Monday 11 August 2003 19:39, you wrote:
> So, this is really a quanta problem, but all applications should update to 
> have a InitialPreference field. 

No (InitialPreference defaults to 1 when not specified).

Waldo: thanks for the fix.