setMenu in ubuntu
See original GitHub issueUbuntu 16.04 Electron 3.0.5 When i add setMenu:
function createWindow () {
/**
* Initial window options
*/
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000
})
mainWindow.setMenu(null) // here
mainWindow.loadURL(winURL)
mainWindow.on('closed', () => {
mainWindow = null
})
}
and try to start dev mode - it crashed. If i build and launch it - error appears:
Segmentation fault (core dumped)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
update-menus - generate Debian menu system
update-menus automatically generates menus of installed programs for window managers and other menu programs. It should be run whenever a menufile(5) or menu- ......
Read more >Nemo menu bar doesn't show up
As a workaround you can set menu to be shown always. Use View → Menubar for this or programmatically: gsettings set org.nemo.window-state ...
Read more >"win.setMenu(null)" did not hide the window menu bar
Ubuntu 18.04.02, Gnome 3.28, Electron 5.0.1, have the same problem. setApplicationMenu(null) can hide the Menu, but press 'Alt' ...
Read more >Bug #327655 “systray.py crashed with NameError in setMenu()”
Binary package hint: hplip I was not aware of any crash, until the apport thing came up. ProblemType: Crash Architecture: i386 DistroRelease: Ubuntu...
Read more >Display strings
Display any text on menu 'setmenu --string' command The setmenu --string command can be used to display strings on menus (date&time requires grub4dos...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When i tried it on clear electron - no error occurs. And no error on electron 3.0.4 with this template.
This was fixed in electorn 3.0.8.