GeopJr / Collision

Check hashes for your files - A GUI tool to generate, compare and verify MD5, SHA-1, SHA-256, SHA-512, Blake3, CRC32 & Adler32 hashes.
https://collision.geopjr.dev
BSD 2-Clause "Simplified" License
143 stars 15 forks source link

Handle open signal #122

Closed GeopJr closed 1 year ago

GeopJr commented 1 year ago

This PR allows Collision to open files either from CLI:

$ collision ./my/file.txt

or through your file manager's "Open With..." context menu entry:

Recording of a GNOME desktop with the Files app open. There's a file named test.txt. User right clicks it and selects the open with context entry. Afterwards, a popup to select the app to open it with shows up. User selects Collision. Then the Collision up shows up with that file's hashes.

Some changes to the way file setting works had to be upstreamed from the DnD PR (#115), which included some additional error handling and bug fixes.

As suggested partially in: #53