I want to add a sound effect whenever electron app launched.How we can achieve this feature
For my app I just preload and play using the audio tag in the renderer of the first page that loads. I also had to add:
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required' )
In the main process before you launch your app.