max-mapper / max-mapper/menubar
Window will not stay shown on launch for packaged .app
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.8k
- Forks
- 363
- PR merge metrics
- No merged PRs in 30d
Description
If I run the app from the command line with electron npm start I can have the menubar window start off as shown using either mb.window.show() or mb.showWindow().
However, once I package the app with electron-packager and launch the .app, the window flashes for a brief moment but won't stay shown.
menubar 2.2.1, electron 0.33.1, electron-positioner 2.0.2
var menubar = require('menubar')
var mb = menubar()
mb.on('ready', function ready () {
console.log('app is ready')
mb.window.show()
})
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the difference between npm start and the packaged .app using the shown mb.on('ready') callback and mb.window.show() call. Compare the launch behavior in both modes; done means the packaged application keeps its menubar window shown at launch rather than flashing and disappearing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100