[solved] Ghost Desktop initial crash

It's a rare occasion that I'd write a proper post (I'm wondering if I've written any here) anyway this miracle happened a few weeks ago.. I've just started to write my first few words in the browser when it came to my mind that there is a desktop app for ghost I've last used right after it was released :) / way back /. Ever since it's been quietly sitting on my hdd.

Let's have at it!

Just grabbed the app @ https://ghost.org/downloads/ , installed it ~/Downloads/ghost-desktop-1.3.0-debian.1.deb and booted the app with Ghost.

Or at least I tried:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Unable to find a valid app
    at Object.<anonymous> (/usr/lib/Ghost/resources/electron.asar/browser/init.js:121:9)
    at Object.<anonymous> (/usr/lib/Ghost/resources/electron.asar/browser/init.js:173:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:424:7)
    at startup (bootstrap_node.js:147:9)

After an initial search of the issues regarding the Ghost-Desktop project on github I've found the suggested workaround: lets run it with sudo.

Err well no. So just had to run

strace Ghost

with the relevant result of

[..]
stat("/usr/lib/Ghost/resources/app/package.json", 0x7fffcb252df0) = -1 EACCES (Permission denied)
stat("/usr/lib/Ghost/resources/app/package.json.js", 0x7fffcb252d50) = -1 EACCES (Permission denied)
stat("/usr/lib/Ghost/resources/app/package.json.json", 0x7fffcb252d50) = -1 EACCES (Permission denied)
stat("/usr/lib/Ghost/resources/app/package.json.node", 0x7fffcb252d50) = -1 EACCES (Permission denied)
open("/usr/lib/Ghost/resources/app.asar", O_RDONLY) = 24
[..]

open("/usr/lib/Ghost/resources/default_app.asar", O_RDONLY) = -1 ENOENT (No such file or directory)
madvise(0x2e09bf783000, 36864, MADV_DONTNEED) = 0
open("/usr/lib/Ghost/resources/default_app.asar", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/Ghost/resources/default_app.asar", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/Ghost/resources/default_app.asar", O_RDONLY) = -1 ENOENT (No such file or directory)
[..]

Which gave the one-liner final solution as:

sudo chmod -R +rx /usr/lib/Ghost/resources/app

Now you can simply start the app with the Ghost command..