rse / slideshow

Slideshow -- Observe and Control Slideshow Applications
https://www.npmjs.org/package/slideshow
Mozilla Public License 2.0
85 stars 14 forks source link

Using slideshow in electron will go wrong #5

Open yuxiaoyan1205 opened 7 years ago

yuxiaoyan1205 commented 7 years ago

image

rse commented 7 years ago

Hmmm... I've checked the code: the connector scripts are located relative to the source tree and hence should be found. The ENOENT indicates that the script does not exist. Check whether the "connector-win-ppt2010.bat" really exists on your filesystem. If it does, it seems there is a restriction on Electron. If it does not exist, your installation of slideshow is damaged. If it is a restriction in Electron, we have to figure out what type of restriction it is. Is perhaps the main thread not allowed to use spawn()?

wgrhstf commented 4 years ago

If you pack your electron application as asar it wont work as the paths change and the .bat and .sh files become part of the asar package. You need to extract those files, put them somewhere else and also change the according paths before packaging