পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Thursday, February 16, 2017

Electron - Environment Variables

Environment Variables control application configuration and behavior without changing code. Certain Electron behaviors are controlled by environment variables because they are initialized earlier than the command line flags and the app’s code.

There are 2 kinds of environment variables encoded in electron, Production variables and Development variables.

Production Variables

The following environment variables are intended for use at runtime in packaged Electron applications.
Variable Description
GOOGLE_API_KEY Electron includes a hardcoded API key for making requests to Google’s geocoding webservice. Because this API key is included in every version of Electron, it often exceeds its usage quota. To work around this, you can supply your own Google API key in the environment. Place the following code in your main process file, before opening any browser windows that will make geocoding requests:
process.env.GOOGLE_API_KEY = 'YOUR_KEY_HERE'
ELECTRON_RUN_AS_NODE Starts the process as a normal Node.js process.
ELECTRON_FORCE_WINDOW_MENU_BAR (Linux Only) Don’t use the global menu bar on Linux.

Development Variables

The following environment variables are intended primarily for development and debugging purposes.
Variable Description
ELECTRON_ENABLE_LOGGING Prints Chrome’s internal logging to the console.
ELECTRON_ENABLE_STACK_DUMPING Prints the stack trace to the console when Electron crashes.
ELECTRON_DEFAULT_ERROR_MODE Shows the Windows’s crash dialog when Electron crashes.
To set any of these environment variables as true, set it in your console. For example, if you want to enable logging, then use the following:
For windows:
> set ELECTRON_ENABLE_LOGGING=true
For Linux:
$ export ELECTRON_ENABLE_LOGGING=true
Note that you'll need to set these environment variables every time you restart your computer. If you want to avoid doing so, add these lines to your .bashrc files.

No comments:

Post a Comment