Skip to content

Instantly share code, notes, and snippets.

@andersk
Last active October 5, 2022 05:46
Show Gist options
  • Save andersk/31ec2165f4aa806536e11d7d99d1e26f to your computer and use it in GitHub Desktop.
Save andersk/31ec2165f4aa806536e11d7d99d1e26f to your computer and use it in GitHub Desktop.
shell.openExternal test
<!-- Empty -->
// avoid interference from Electron Fiddle itself
delete process.env.GDK_BACKEND;
const {app, shell} = require("electron");
(async () => {
await app.whenReady();
console.log({GDK_BACKEND: process.env.GDK_BACKEND});
await shell.openExternal("https://electronjs.org/");
app.quit();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment