arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

Unterminated quote string #10

Closed rafaelcorreiapoli closed 9 years ago

rafaelcorreiapoli commented 9 years ago

screenshot from 2015-09-11 04 20 06 The app runs fine when running throught "meteor run", however when trying to run the dist version, I get this strange error =(

rafaelcorreiapoli commented 9 years ago

Electrified: 1: Electrified: ELF: not found Electrified: 1: Electrified: Syntax error: Unterminated quoted string

arboleya commented 9 years ago

Well thats is new, I'll need to emulate it first.

Ubuntu right? What version?

arboleya commented 9 years ago

Also, can you provide a simple repo reproducing this behavior? So we can go down in a less esoteric way about fixing this. :)

rafaelcorreiapoli commented 9 years ago

I discovered what was happening, i ran electrify as root then it created a file on my tmp: electrify-ppid when I closed it, the file was not deleted and then I couldn't open the app anymore I deleted the tmp file and did everything again but with my own user... now this problem is fixed Although, i still have the problem that the app freezes on an empty screen when running the app for the second time (it only works on the first time)

rafaelcorreiapoli commented 9 years ago

Ubuntu 14.04 LTS

arboleya commented 9 years ago

Can you provide a simple repo reproducing this behavior, so I can start on the right foot?

rafaelcorreiapoli commented 9 years ago

It happened just by creating a new meteor project and adding the electrify package It was not a problem with the package itself, but with my tmp directory, in my ubuntu I think that would be great if you manage to delete that electrify-ppid from tmp folder when the process is finished, to avoid this kind of problems

arboleya commented 9 years ago

Hmm ok.

Electrify itself doesn't create this ppid, perhaps it's something automatically created by Electron itself.

I'm gonna dig into it this weekend, let's see.

arboleya commented 9 years ago

Oh now I see, you are trying to run a binary through shell, remove the sh part and it will proceed.

.electrified/.dist/Electrified-linux-x64/Electrified

Or, outside terminal, just double click the file's icon.