I am using electron forge with typescript integration.
I can't find a solution to drag and drop files from explorer and get their full paths
I put in index.ts the following:
import {app, BrowserWindow, ipcMain} from 'electron';
ipcMain.on('ondragstart', (event, filepath) => {
console.log("ondragstart " + filepath); // doesn't work
});
but doesn't show anything when I drag n drop files
any ideas?