Bring additional tab HashTab to properties window of file

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
AjvarXX

Bring additional tab HashTab to properties window of file

Post by AjvarXX »

Hello.

Now when you right click any file and click properties you can see 4 tabs (Basics, Permissions, Open with and Emblems). Why not to give an option (checkbox) for 5-th called HashTab which would both show you checksumms of current file (MD5 etc) and option to compare with another file?

I found this code for Ubuntu/Gnome/Nautilus HERE

Code: Select all

#!/bin/sh
# Released into the public domain.
#
for arg
do
    md5=$(md5sum "$arg" | awk '{print $1}')
    sha1=$(sha1sum "$arg" | awk '{print $1}')
    crc32=$(crc32 "$arg")
    compare_msg="MD5 hash to compare:"
    md5compare=$(gdialog --title "Hashes and MD5 comparison" --inputbox "File $arg\nmd5\t\t$md5\nsha1\t\t$sha1\ncrc32\t$crc32\n\n$compare_msg" 1100 3>&1 1>&2 2>&3 )
    while [ $? -eq 0 ]
    do
        if [ "$md5compare" = "$md5" ]; then
            compare_msg="Match confirmed"
        else
            compare_msg="No match\n\t\t$md5compare"
        fi
        md5compare=$(gdialog --title "Hashes and MD5 comparison" --inputbox "File $arg\nmd5\t\t$md5\nsha1\t\t$sha1\ncrc32\t$crc32\n\n$compare_msg" 1100 3>&1 1>&2 2>&3 )
    done
done
But not everyone who uses Linux is a programmer, you know. I created folder $HOME/.gnome2/nautilus-scripts and that script in there but it did nothing.

But why not to create this in Desktop Manager if that's so easy?
Image Image
http://mainview.ru/wp-content/uploads/2012/03/tb21.jpg http://www.bleepstatic.com/download/scr ... shtab2.png
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Bring additional tab HashTab to properties window of fil

Post by Cosmo. »

You can add the packet nemo-gtkhash. Needs to restart nemo afterwards.
AjvarXX

Re: Bring additional tab HashTab to properties window of fil

Post by AjvarXX »

Cosmo. wrote:You can add the packet nemo-gtkhash. Needs to restart nemo afterwards.
Thank you! Why didn't Mint Devs add this packet to Mint by default or create an analog then?
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Bring additional tab HashTab to properties window of fil

Post by Cosmo. »

Because somebody else contributed this?
AjvarXX

Re: Bring additional tab HashTab to properties window of fil

Post by AjvarXX »

Cosmo. wrote:Because somebody else contributed this?
Well, I thought that different distributives/builds contain different summary of packets which developers choose unless original author/contributor is against this.
Locked

Return to “Cinnamon”