Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
How can I hide the menubar from an Electron app?

I recently started making a desktop app with Electron, and staring at that menu bar that's always there at the top is getting annoying.

So, I went online and scoured the web for a good solution - but most answers I found were either very old, might not be supported in all operating systems, or just weren't what I was looking for. So, here I am, asking a question which will probably be marked a duplicate.

I want to hide the menubar in my app permanently - so setting the autoHideMenuBar property to true won't work, as then the alt key would still show it.

I want to keep functionality like using F11 to get fullscreen as well.

Does anyone know how I can do that?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

There are normally a few ways to do this, here are some suggestions:

  1. Set menu to null when creating the window:

    const mainWin = new BrowserWindow({menu: null});

  2. Remove menu after window object has been created (Set a blank menu with MacOS):

    const { Menu } = require('electron');

    process.platform === "win32" && mainWin.removeMenu();

    process.platform === "darwin" && Menu.setApplicationMenu(Menu.buildFromTemplate([]));

  3. Using the Menu module from electron:

    const { Menu } = require('electron');

    Menu.setApplicationMenu(null);

about 4 years ago · Juan Pablo Isaza Report

0

You could try this

const { Menu } = require('electron');
Menu.setApplicationMenu(null);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!