LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Possible bug with Debian's Konqueror/Dolphin/KDE and zip extraction, and how to fix

Posted 05-09-2014 at 01:39 PM by the dsc
Updated 05-10-2014 at 12:38 PM by the dsc
Tags bug, debian, kde, zip

I noticed that there was no longer the "extract" context submenu for zip files after one of the last updates. Then I went to check the ".desktop" files on /usr/share/kde4, and noticed that they had an editing mistake in the mimetype line:

Code:
MimeType= ... application/x-lzma-compressed-tar;application/zipapplication/x-deb; ...
I guess it was probably something related with deb packages, which must have edited this line and "forgot" to add the semicolon.

To fix these files en masse one could issue (as root):

Code:
# for i in *.desktop ; do sed -ie 's|application/zipapp|application/zip;app|g' $i ; done
Worked for me. I did a backup* of all these .desktop files beforehand. The critical files for this function are in /usr/share/kde4/services/ServiceMenus. But there are other .desktop files on the root of ../services, and possibly elsewhere.


* - if the backups are stored in a subfolder of ServiceMenus, they won't be ignored, and it will have the weird temporary (as long as the backup folder is there) effect that the KDE-stuff will duplicate lots of things, like the related context/service menu entries for a given file type, and even all the subsections of some (at least "appearance") sections of [k]systemsettings.
Posted in Uncategorized
Views 1582 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration