Giter Site home page Giter Site logo

Blank window? about electronmail HOT 5 CLOSED

vladimiry avatar vladimiry commented on July 21, 2024
Blank window?

from electronmail.

Comments (5)

vladimiry avatar vladimiry commented on July 21, 2024 1

@mhingston thanks for the report, just tried to run both versions, work well for me.

It looks like you are running app with NODE_ENV=development environment variable set. That would explain the described behavior. Can you make sure it's not like that? Such env variable enables the dev mode running app in which you get the dev console opened and main app page set to http://localhost:3000/index.html (served by webpack-dev-server) instead of the local page.

Alternately you can try the most recent version protonmail-desktop-app-0.4.0-linux-x86_64.AppImage prepared from master, which has got the NODE_ENV renamed to NODE_ENV_RUNTIME plus some minor changes.

By the way, do other linux package formats work well for you?

from electronmail.

mhingston avatar mhingston commented on July 21, 2024

Thanks @vladimiry, I was able to get it working using the 0.4.0 AppImage. I will give the other Linux packages a try and get back to you.

from electronmail.

vladimiry avatar vladimiry commented on July 21, 2024

I think if you just make sure that there is no NODE_ENV=development environment variable set, then 0.3.1 and 0.3.2 will also work well. With this variable other linux packages most likely will face the same issue, as code is the same. 0.4.0 works because NODE_ENV got renamed to NODE_ENV_RUNTIME. @mhingston can you please confirm that it works when there is no NODE_ENV=development set, so I could close the issue.

I'm going to release 0.4.0 with electron v2 rc (it's in beta state), or maybe earlier if there will be a specific need.

from electronmail.

mhingston avatar mhingston commented on July 21, 2024

Yep, I tested 0.3.1 and 0.3.2 with NODE_ENV unset but as I need to have that env var set on my system for other software I'm building/debugging so I chose to upgrade to 0.4.0. Thanks again.

from electronmail.

vladimiry avatar vladimiry commented on July 21, 2024

@mhingston, runtime env variables usage got improved with new v0.4.3 release (about to be published). It's now only two and prefixed: PROTONMAIL_DESKTOP_APP__USER_DATA_DIR and PROTONMAIL_DESKTOP_APP__E2E, see constants. Changing main html page app-built-in/local vs http://localhost:3000/index.html doesn't happen in runtime anymore for production builds, customization is happening on build stage. Which means there will be chance to get shown blank page again.

from electronmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.