electron-windows-interactive-notifications icon indicating copy to clipboard operation
electron-windows-interactive-notifications copied to clipboard

package.json config gets ignored

Open DesselBane opened this issue 6 years ago • 1 comments

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.

ElectronWindowsInteractiveNotifications.log

DesselBane avatar Apr 20 '18 10:04 DesselBane

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.

wiinf avatar Jul 16 '18 12:07 wiinf