Category : electron

The More General Question I am wondering if there is a standard way that operating systems / desktop managers use to expose the user’s preference regarding the placement of the window frame controls (Close, Maximize/Miniaturize, Minimize). For platforms like Windows and MacOS, it’s "pretty" safe to assume that the users wants their window controls on ..

Read more

I’m building an Electron App using electron-builder on macOS. In my code I access the command line args like this: const cmd = electron.remote.app.commandLine; const val = cmd.hasSwitch(‘myArg’) ? cmd.getSwitchValue(‘myArg’) : undefined; This works fine for the production build on macOS when providing the arguments: ./my-electron-app.app/Contents/MacOS/my-electron-app –myArg=foo // or: open my-electron-app.app –args -myArg=foo But on ..

Read more

I am creating a small Electron application where I want the url www.example.com to be an alias of localhost. By changing Windows’s hosts file I could do that, the problem is that www.example.com would also be localhost in browsers, which wouldn’t work (Because my Electron app is creating the server, so the server wouldn’t be ..

Read more

I got to know that most of the legacy windows application are not automatically responsive to DPI scaling mentioned at https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows How to make electron application responsive to DPI scaling? Currently my electron application’s layout is getting spoiled by changing display scale. Source: Windows..

Read more