Express not starting in packaged electron app


Hi all, I’m running Electron 1.7.5 on Ubuntu 16.04 and I’ve created an electron app that starts an express server and renders the relevant page.

Here’s the thing:

The app runs perfect via the command line: electron .

But if I package it, then it doesn’t start at all. If a double click the app icon absolutely nothing happens. Nothing pops up etc.

I’ve scoured the net and no one has had an issue like this… Is there a way to debug a packaged app? I’m still quite new to development in general.