Platform:
- Raspberry Pi 4. Model B
- Raspberry Pi OS. Debian 11.7
- Electron 25.2.0
- Node : v18.17.1
MagicMirror² Version: 2.24.0
Description: Setting electronOptions: { fullscreen: false } in my config files didn't seem to be working. After digging a bit in js/electron.js I found the following snippet
mainWindow.once("ready-to-show", () => {
mainWindow.setFullScreen(true);
mainWindow.show();
});
This snippet sets the window to full-screen regardless of what's specified on electronOptions. Once i removed or commented out the mainWindow.setFullScreen(true); statement I noticed that the value from electronOptions began applying
Steps to Reproduce:
- Set
electronOptions: { fullscreen: false } on your config.js file
- Run MagicMirror with
npm run start
- Notice that the mirror app opens in full-screen despite what we set in
config.js
- Locate and open to edit
js/electron.js
- Locate the line with
mainWindow.setFullScreen(true) and remove it or commet it out
- Toggle the
fullscreen setting in electronOptions in your config file and see how it actually has an effect now after restarting the MagicMirror app.
Expected Results: Setting electronOptions: { fullscreen: false } opens the MM app in a window which is not full-screen. The setting is respected and applies
Actual Results: Setting electronOptions: { fullscreen: false } in config.js is not respected and it does not apply, as such the MM app opens in full-screen
Platform:
MagicMirror² Version: 2.24.0
Description: Setting
electronOptions: { fullscreen: false }in my config files didn't seem to be working. After digging a bit injs/electron.jsI found the following snippetThis snippet sets the window to full-screen regardless of what's specified on
electronOptions. Once i removed or commented out themainWindow.setFullScreen(true);statement I noticed that the value fromelectronOptionsbegan applyingSteps to Reproduce:
electronOptions: { fullscreen: false }on yourconfig.jsfilenpm run startconfig.jsjs/electron.jsmainWindow.setFullScreen(true)and remove it or commet it outfullscreensetting inelectronOptionsin your config file and see how it actually has an effect now after restarting the MagicMirror app.Expected Results: Setting
electronOptions: { fullscreen: false }opens the MM app in a window which is not full-screen. The setting is respected and appliesActual Results: Setting
electronOptions: { fullscreen: false }inconfig.jsis not respected and it does not apply, as such the MM app opens in full-screen