Read the statement by Michael Teeuw here.
Where is the run-start.sh located?
-
@Teun so far I have not found a way to make dual screen into one screen at startup.
when u maximize it goes full on the current screen.
I don’t know if u take maximize off and set the actual full dimensions if it will fill both screens
you should be able to do the parameters with the electron Options in config.js -
@sdetweil , thanks for the reply. I did some adaptations in the electron.js file, as I couldn’t find any specific settings in the config.js file. That’s why I thought maybe the electron.js file was the correct file to change? By changing the electron.js file, I already could change the full screen setting. So now I can have a smaller screen when I do the MagicMirror start (npm run start). Then I can manually adapt the length of the screen/frame so it is spreaded over the 2 monitors. Only remaining problem is when I close the MM app and I start again (by using npm run start), I still have the smaller screen and I again need to manually change the dimensions so the screen would fill the 2 monitors. Do you have any idea how that can be fixed? Thanks!
-
@Teun well, I would try using the electronOptions field in config.js
var config = { electronOptions:{x:0, backgroundColor:'#00000001', width:800, height:1024, fullscreen:false, kiosk:false }, address: "0.0.0.0", // Address to listen on, can be:
and change the width/height
may have to comment this out in electron.js
mainWindow.on("leave-full-screen", function() { mainWindow.setFullScreen(true); });
-
you might also be able to use these
minWidth Integer (optional) - Window's minimum width. Default is 0. minHeight Integer (optional) - Window's minimum height. Default is 0.
see all the settings
https://www.electronjs.org/docs/api/browser-window -
@sdetweil This was what I needed! Many thanks for helping me with this problem! Issue solved!