max-mapper / max-mapper/menubar

Window will not stay shown on launch for packaged .app

Open
#76 13 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.