hashmyfiles drag&drop issue

Questions about Wine on Linux
Locked
abraxa
Level 2
Level 2
Posts: 27
Joined: Sat Feb 13, 2016 5:48 am

hashmyfiles drag&drop issue

Post by abraxa »

there is a hash tool i liked very much when still using windows, called hashmyfiles http://www.nirsoft.net/utils/hash_my_files.html.

actually it works under wine 2.11 (x32), however, the most interresting feature does not, drag&drop files.

how to get around this issue. is it wine related?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: hashmyfiles drag&drop issue

Post by Bob Wya »

@abraxa

I tested hashmyfiles - it supports drag-n-drop from Wine explorer.
Started with:

Code: Select all

wine explorer
You won't be able to do file drag-n-drop with native Linux File Managers.
That is a hard limitation - of the current implementation of Wine.


Surely it would be far easier just to write a little BASH script to replicate the functionality of this utility?
hashmyfiles has a very basic feature set after all!

E.g. find all *.exe files in a subdirectory of current directory and find md5 hash of them...

Code: Select all

find . -mindepth 2 -maxdepth 2 -type f -name "*.exe" -print0 | xargs -0 md5sum
Who needs janky Windows utilities - when you've got this power under the hood? 8)

Bob
abraxa
Level 2
Level 2
Posts: 27
Joined: Sat Feb 13, 2016 5:48 am

Re: hashmyfiles drag&drop issue

Post by abraxa »

now that is interresting, as drag&drop works with nemo and several windows tools. after all, why the difference with hashmyfiles then?

you are right concerning the bash script of course, but droping 2 (or more) files on hmf for a quick visual verification is very fast + practical.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: hashmyfiles drag&drop issue

Post by Bob Wya »

abraxa wrote:now that is interesting, as drag&drop works with nemo and several windows tools. after all, why the difference with hashmyfiles then?

you are right concerning the bash script of course, but dropping 2 (or more) files on hmf for a quick visual verification is very fast + practical.
To follow up I had a look at the Wine code for xdnd (X drag-n-drop) today.

This patch (hack) allows HashMyFiles.exe to accept natively dropped files from Dolphin:

Code: Select all

--- a/dlls/winex11.drv/xdnd.c	2017-07-08 20:39:03.494519651 +0100
+++ b/dlls/winex11.drv/xdnd.c	2017-07-17 20:49:17.435612928 +0100
@@ -791,3 +791,3 @@
         FIXME("only the content aspect is supported right now\n");
-        return E_NOTIMPL;
+        return S_OK;
     }
Update: Wine bug filed - see Bug 43368 - HashMyFiles: Drag & Drop from native File Managers (Dolphin, Nautilus, ...) does not work ...

Btw you know most Web Browsers have builtin spellcheck functionality?? :wink:

Bob
abraxa
Level 2
Level 2
Posts: 27
Joined: Sat Feb 13, 2016 5:48 am

Re: hashmyfiles drag&drop issue

Post by abraxa »

Bob Wya wrote: This patch (hack) allows HashMyFiles.exe to accept natively dropped files from Dolphin:
this is awesome news, thank you very much bob :)
Locked