Bug 178603 - Error loading Cervisia module in Konqueror
Summary: Error loading Cervisia module in Konqueror
Status: RESOLVED FIXED
Alias: None
Product: cervisia
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Loose
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 21:53 UTC by PhobosK
Modified: 2009-01-05 22:51 UTC (History)
2 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 PhobosK 2008-12-23 21:53:27 UTC
Version:           3.1.3 (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

See the report of bug 171802.

(I have copied a short version of the description):

If cervisia is installed and konqueror has been chosen as default file manager, konqueror keeps popping up a dialog that says:
"There was an error loading the module Cervisia.
The diagnostics is:
The service 'Cervisia' provides no library or the Library key is missing in the
.desktop file."

Steps to recreate:
1) Go into System Settings > Advanced > File Associations and change the order for inode/folder to move Konqueror to the top of list.
2) Any time you navigate with Konqueror's arrow key's, the error described above occurs.


The reason for this is the error in the cervisia.desktop file installed in /usr/share/applications/kde4/.
Instead of: 
	X-KDE-Library=libcervisiapart
the entry should be:
	X-KDE-Library=cervisiapart

A temporary fix for users could be fixing the error in the .desktop file as root and then as user just to edit the Cervisia entry in: System Settings > Advanced > File Associations for inode/folder.
Or if exists, to delete the file ~/.local/share/applications/kde4/cervisia.desktop
Comment 1 Andre Woebbeking 2009-01-02 15:00:14 UTC
This will be fixed in 4.2.0. I can't backport it to 4.1 as I don't want to change file names in a patch release.
Comment 2 PhobosK 2009-01-02 20:43:49 UTC
(In reply to comment #1)
> This will be fixed in 4.2.0. I can't backport it to 4.1 as I don't want to
> change file names in a patch release.
> 

I do not see any file name change needed. All that is needed is to fix the X-KDE-Library option in the desktop file... which btw i do not see fixed in the svn...
Comment 3 Andre Woebbeking 2009-01-03 10:37:53 UTC
I thought there were two changes related to this
1) renaming libcervisiapart to cervisiapart (not only the entry also the file itself)
2) splitting cervisia.desktop into cervisia.desktop (for the application) and cervisiapart.desktop (for the Konqueror part), so a new file must be packaged.

IMO 1) is not important (it triggers only a warning) but 2) fixes this issue.
Comment 4 PhobosK 2009-01-03 17:26:58 UTC
(In reply to comment #3)
Well i was talking about the temporary fix for the backport.
And IMHO 1.) is of top importance to every user of konqueror 'cause it is really very annoying to see the warning every time one starts konqueror...
And the full fix could be done in 4.2.0 final.
Comment 5 Andre Woebbeking 2009-01-04 17:13:29 UTC
I tried your "fix" but it didn't work (as expected because the code in kdelibs tests the .desktop file for Type=Application but Type=Service is needed).

As KDE 4.2 will be released only three weeks after 4.1.4 I hope it's not that inconvenient to wait for it.
Comment 6 PhobosK 2009-01-04 21:09:05 UTC
(In reply to comment #5)
The "fix" is only for disappearing of the annoying error dialog, and i dunno what exactly you did, but it works for me as expected (i.e. error dialog disappears)....
And about the convenience... because of not fixing the bus on time (even the "small" ones) and because of the stupid rules/schedules etc. of fixing bugs... in terms of functionality and stability KDE4 is far far away even from KDE2 (i would say it is like KDE1)... and that makes users stop using it and transfer to GNOME.... sorry but my personal opinion is that this is lousy... (Nothing personal)
Comment 7 Andre Woebbeking 2009-01-04 23:26:27 UTC
I removed the "lib" prefix in the installed cervisia.desktop file (I don't have the .desktop file in ~/.local) and started KDE and got the error dialog again.

I would apply your "small" fix if it would fix the problem. I don't know why it works for you.
Comment 8 PhobosK 2009-01-05 00:04:29 UTC
(In reply to comment #7)
Oh then i should apologize... When i made a diff with the svn it turned out that i have deleted the:
ServiceTypes=KParts/ReadOnlyPart,Browser/View
entry also, except for removing the lib part in X-KDE-Library...
That is why it worked for me... I guess that makes it totally unusable anyway... though it is unusable with the bug also...

And btw the user's .desktop files location strongly depends on the distribution... like Mandriva has its own way of seeing these things etc... so you should really be assured no user cervisia.desktop file exists at all...
Comment 9 David Faure 2009-01-05 22:39:03 UTC
SVN commit 906293 by dfaure:

Fix wrong if() so that cervisia part can be loaded in konqueror.
CCBUG: 178603


 M  +1 -1      kpluginloader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=906293
Comment 10 Andre Woebbeking 2009-01-05 22:51:23 UTC
PhobosK, yep, you disabled Cervisia's "part" feature.

> And btw the user's .desktop files location strongly depends on the 
> distribution...

I searched in my complete home folder.