Page 1 of 1

MD5sum check from clipboard selection(doesn't work)

Posted: 14 Jun 2012, 00:19
by don570
MD5sum calulation and check with xclip

EDIT: WARNING !! This method doesn't work correctly.
because Thunar keeps an icon focused and selected

Therefore clipboard info can't be tranferred to program



Available here as two modules in one archive. Uncompress please
and install both modules. A re-login is sometimes necessary
to get the text to show in the SendTo menu.
http://www.datafilehost.com/download-ee584edd.html

The following is a method of MD5sum calculation as well as
checking. It is meant to replace bigger software that does the same thing.
It has been internationalized with locals.

Instructions for MD5sum calulation : Right click on a file

Image

Instructions for checking MD5sum of downloaded file:
Download sites often have the MD5sum listed. Just highlite this
sum or copy it to the clipboard.

Image

Then rightclick on a downloaded file and choose the 'Clipboard MD5sum check'
A message will say either 'Success' or 'Failure'. Failure means you
will have to download the file again. :cry:

Image


___________________________________________________________________________

Re: MD5sum check from clipboard selection

Posted: 14 Jun 2012, 13:04
by Hamza
Very Useful to check the integrity of an ISO file !

Re: MD5sum check from clipboard selection

Posted: 15 Jun 2012, 22:18
by brokenman
More useful if we could port to dolphin, konqueror and pcmanfm aswell.

Any reason there is spaces in the filenames for .desktop files?

Re: MD5sum check from clipboard selection

Posted: 16 Jun 2012, 16:28
by don570
WARNING!
I discovered that this method doesn't work properly with
Porteus. I believe the problem is based on how focusing
of icons is done by Thunar in Porteus. In Jemimah's Saluki
(which also uses Thunar) the focusing of icons is done in such
a way that the clipboard isn't affected. This means that the clipboard
will still contain the MD5sum when the script is executed.

The script was actually developed for Rox filer which keeps it's
icons unfocused and therefore unselected. The method works
very well with Rox :Yahoo!:

The reason why I put spaces in the desktop filename is because
those words appear in the Thunar SendTo folder (apparently??)
I think this is a feature of Thunar.

My big problem is how do I install in a users home folder.
I need a pinstall.sh script like Puppy linux supports.
That way I could find the location of user's home folder
and install to SendTo folder of user.

______________________________________________________

Re: MD5sum check from clipboard selection(doesn't work)

Posted: 17 Jun 2012, 01:07
by brokenman
Here is a version i wrote for Trinity (konqueror) service menu. It supports md5, sha1, sha224, sha256, sha384 & sha512 checksums. It was written and tested on latest v1.2rc2. It will ship in i486 v1.2 final.

Just copy the checksum link from the website or file. Right click on the file you want to check and choose the checksum option. It will auto sniff the checksum type and compare to clipboard. Let me know of any bugs. I'll whip something up for dolphin and thunar & pcmanfm shortly.

Download here

BTW: If writing something for a servicemenu operation, it is sometimes best to write the scripIt was written and tested on latest v1.2rc2.t and drop it into /opt/porteus/scripts/whatever and then let the .desktop file point to the script. In this way the different window managers just need to create a .desktop file and you have a universal script for all desktops.

Thanks for the inspiration don ... a nice idea. Keep em coming!!