electron-windows-interactive-notifications
electron-windows-interactive-notifications copied to clipboard
package.json config gets ignored
As stated in the Readme to install this package I have to specify a CLSID and a protocol. Specifying it in the package.json however results in this installation output:
ToastActivitorCLSID
DLLs will be compiled with the following ToastActivitorCLSID: 7d125530-fa07-4584-9fe7-dc1e7a589a7c ###########################################################
No protocol defined, please consult windows-interactive-notifications readme!
ToastActivator Protocol
DLLs will be compiled with the following launch protocol: /myapp:///gi ###########################################################
package.json:
{
...
"interactive-notifications": {
"toast-activator-clsid": "F2633CBF-FAD4-4326-9FC5-11D7F118335B",
"protocol": "jukebox://"
},
...
}
Did I specify it incorrectly or is the installation not reading the package.json ? It should be noted if I specify an Environment variable the installation uses the correct values.
The settings will be ignored because of the path selection in utils.js.
function getAppPackage () { const cwd = process.cwd() const ends = cwd.indexOf('node_modules\\.staging') let package = null
I'm wondering about the .state folder and read thats a temp install folder.
But at the time the settings were read there was no folder .staging at the said location.
So I changed the line like this:
const ends = cwd.indexOf('node_modules\\electron-windows-interactive-notifications')
And install the module like this:
npm install <path_to_local_modul>
Example npm install c:\electron-windows-interactive-notifications
This worked for me.