title: How to disable fullscreen on electron window (linux)
body: <p>These are the only four attributes mentioned in docs.</p>
  
  <p>(1) <code>minimizable</code></p>
  
  <p>(2) <code>maximizable</code></p>
  
  <p>(3) <code>fullscreen</code></p>
  
  <p>(4) <code>fullscreenable</code></p>
  
  <p>While former two specify that these aren't implemented on Linux, the latter two are for mac only. </p>
  
  <p>So, how do I prevent user from making the window occupy full screen on Linux? And what's the point of having max height and max width properties then (I can't drag and resize beyond those but I can still maximize the window)? </p>
  
  <p>Code: </p>
  
  <pre><code>const { app, BrowserWindow,Menu } = require('electron');
  const path = require('path');
  
  require('electron-reload')(__dirname, {
    electron: path.join(__dirname,'..', 'node_modules', '.bin', 'electron')
  });
  
  // Handle creating/removing shortcuts on Windows when installing/uninstalling.
  if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
    app.quit();
  }
  
  
  let mainWindow;
  
  const createWindow = () =&gt; {
    mainWindow = new BrowserWindow({
      width: 550,
      height: 500,
      skipTaskbar: true,
      maxWidth:1000,
      maxHeight:800,
      show:false,
      fullscreenable:false,
      fullscreen: false,
      maximizable: false
    });
  
    mainWindow.loadURL({url});
  
    mainWindow.once('ready-to-show', () =&gt; {
      mainWindow.show()
    })
  
  
    mainWindow.on('closed', () =&gt; {
      mainWindow = null;
    });
  };
  
  app.on('ready', createWindow);
  
  app.on('window-all-closed', () =&gt; {
    if (process.platform !== 'darwin') {
      app.quit();
    }
  });
  
  app.on('activate', () =&gt; {
    if (mainWindow === null) {
      createWindow();
    }
  });
  
  
  </code></pre>