Bug 103766 - Impossible to open applications from applications:/ or settings from settings:/
Summary: Impossible to open applications from applications:/ or settings from settings:/
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: settings (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Joseph Wenninger
URL:
Keywords:
: 103925 107589 108728 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-13 02:40 UTC by Iñaki Baz Castillo
Modified: 2005-12-06 15:22 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iñaki Baz Castillo 2005-04-13 02:40:30 UTC
Version:           3.4.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre3 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.10

If I open Konqueror in applications:/ and try to open any program this dialog appears:

  Open 'applications:/Internet/amsn'?
  Extension: Simple text document.
  [Save] [Open with Kwrite] [Cancel]

The same problem occurs in settings:/ when trying to open any component of Kcontrol.

I have tried this bug with a new user created now (just to test this bug) and the bug occurs, so it's not a problem of user mimetypes associations, I think.
Comment 1 Maksim Orlovich 2005-04-15 05:19:01 UTC
*** Bug 103925 has been marked as a duplicate of this bug. ***
Comment 2 Ana Guerrero (Debian KDE maintainers) 2005-04-15 14:23:16 UTC
This bug is reproducible with Debian's unofficial 3.4.0 packages, though at the moment I can't offer you any insight as to why, unfortunately.
Comment 3 David Faure 2005-05-04 18:15:21 UTC
SVN commit 409326 by dfaure:

make clicking on settings:'s items work again (backport)
BUG: 103766


 M  +4 -5      branches/KDE/3.4/kdebase/kioslave/settings/kio_settings.cc  


--- branches/KDE/3.4/kdebase/kioslave/settings/kio_settings.cc #409325:409326
@@ -69,7 +69,7 @@
 	entry.append(atom);
 }
 
-static void createFileEntry(KIO::UDSEntry& entry, const QString& name, const QString& url, const QString& mime,const QString& iconName)
+static void createFileEntry(KIO::UDSEntry& entry, const QString& name, const QString& url, const QString& mime, const QString& iconName, const QString& localPath)
 {
 	entry.clear();
 	addAtom(entry, KIO::UDS_NAME, 0, name);
@@ -78,7 +78,7 @@
 	addAtom(entry, KIO::UDS_ACCESS, 0500);
 	addAtom(entry, KIO::UDS_MIME_TYPE, 0, mime);
 	addAtom(entry, KIO::UDS_SIZE, 0);
-	addAtom(entry, KIO::UDS_GUESSED_MIME_TYPE, 0, "application/x-desktop");
+	addAtom(entry, KIO::UDS_LOCAL_PATH, 0, localPath);
 	addAtom(entry, KIO::UDS_CREATION_TIME, 1);
 	addAtom(entry, KIO::UDS_MODIFICATION_TIME, time(0));
 	addAtom(entry, KIO::UDS_ICON_NAME, 0, iconName);
@@ -93,7 +93,6 @@
 	addAtom(entry, KIO::UDS_MIME_TYPE, 0, mime);
 	addAtom(entry, KIO::UDS_URL, 0, url);
 	addAtom(entry, KIO::UDS_SIZE, 0);
-	addAtom(entry, KIO::UDS_GUESSED_MIME_TYPE, 0, "inode/directory");
 	addAtom(entry, KIO::UDS_ICON_NAME, 0, iconName);
 }
 
@@ -202,7 +201,7 @@
 //			createFileEntry(entry, service->name(), newUrl, "application/x-desktop", service->icon());
 
 			createFileEntry(entry, service->name(), url.url(1)+service->desktopEntryName(),
-                            "application/x-desktop", service->icon());
+                            "application/x-desktop", service->icon(), locate("apps", service->desktopEntryPath()) );
 		} else {
 			error(KIO::ERR_SLAVE_DEFINED,i18n("Unknown settings folder"));
 			return;
@@ -284,7 +283,7 @@
 		} else {
 			KService::Ptr s(static_cast<KService *>(e));
 			kdDebug() << "SettingsProtocol: adding file entry " << url.url(1)+s->name() << endl;
-			createFileEntry(entry,s->name(),url.url(1)+s->desktopEntryName(), "application/x-desktop",s->icon());
+			createFileEntry(entry,s->name(),url.url(1)+s->desktopEntryName(), "application/x-desktop",s->icon(),locate("apps", s->desktopEntryPath()));
 		}
 
 		listEntry(entry, false);
Comment 4 Maksim Orlovich 2005-06-17 16:34:00 UTC
*** Bug 107589 has been marked as a duplicate of this bug. ***
Comment 5 Maksim Orlovich 2005-07-08 00:27:19 UTC
*** Bug 108728 has been marked as a duplicate of this bug. ***
Comment 6 Maksim Orlovich 2005-08-21 17:39:30 UTC
*** Bug 111200 has been marked as a duplicate of this bug. ***