ipfs-shipyard / go-ipfs-desktop

Other
12 stars 6 forks source link

Allow natively adding a file via the system UI #9

Open mvdan opened 3 years ago

mvdan commented 3 years ago

IPFS Desktop's README says:

(Windows) Right-click a file/folder's icon to add it to IPFS from the pop-up menu (Mac) Drag and drop a file/folder onto the IPFS logo in your menubar

The Windows approach should also be possible on Linux.

Apparently, this is what does it for Windows: https://github.com/ipfs-shipyard/ipfs-desktop/blob/master/assets/build/nsis.nsh

I haven't done further research here just yet. Definitely a stretch goal for the "one week" timeline.

lidel commented 3 years ago

I imagine we want --install-system-integrations and --uninstall-system-integrations for this.

On Windows it would add registry keys that mark go-ipfs-desktop binary as handler for "Add to IPFS" context menu actions in Explorer and also register handler for ipfs:// and ipns:// that opens then on public gateway (leaving local redirect to ipfs-companion).

mvdan commented 3 years ago

Sounds good. I fail to understand what you mean by "local redirect", though :)