Bug 81258 - handle .md5 files - easy to implement
Summary: handle .md5 files - easy to implement
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: servicemenus (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-10 16:21 UTC by Michał Kosmulski
Modified: 2011-06-12 09:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.