Bug 81258

Summary: handle .md5 files - easy to implement
Product: [Applications] konqueror Reporter: Michał Kosmulski <michal>
Component: servicemenusAssignee: Aaron J. Seigo <aseigo>
Status: CONFIRMED ---    
Severity: wishlist CC: lopezibanez, martin
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michał Kosmulski 2004-05-10 16:21:13 UTC
Version:            (using KDE KDE 3.2.1)
OS:          Linux

It would be nice for konqueror to handle .md5 files (files containing MD5 checksums of files, generated by md5sum), so the user doesn't have to go to the console to verify the checksums. Here is a very simple script I have associated with .md5 files (I defined the mime type application/md5):

#!/bin/sh
# Michal Kosmulski
# Check MD5 sums from a .md5 file and display results using kdialog
cd `dirname "$1"`
tmpname=`mktemp /tmp/md5kde.XXXXXX`
md5sum -c `basename "$1"` &> "$tmpname"
kdialog --title "MD5 sum" --textbox "$tmpname" 500 300
rm "$tmpname"

You can also use it for a servicemenu item (kmd5check is what I called the above script):

[Desktop Action check]
Exec=kmd5check %U

Name=Check MD5 sum correctness
Name[pl]=Sprawdź poprawność sum MD5

[Desktop Entry]
Actions=check
ServiceTypes=application/md5


I think this simple solution is good enough for most users, but of course it can be improved.
Comment 1 Manuel López-Ibáñez 2007-09-29 02:45:41 UTC
There is also a program that implements this: http://www.kde-apps.org/content/show.php/KDigest?content=14428

It would be nice if Konqueror/Dolphin could add an option "Check" to the right-click menu for *.md5 files.