Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't include the version number in process.title because it shows in the menubar in macOS Sonoma COMPASS-7513 #5497

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Feb 26, 2024

Looks like this was harmless before the release of macOS Sonoma.

Screenshot 2024-02-26 at 11 42 39

@lerouxb lerouxb requested a review from addaleax February 26, 2024 12:09
@github-actions github-actions bot added the fix label Feb 26, 2024
@lerouxb lerouxb requested a review from kmruiz February 26, 2024 12:09
@@ -24,7 +24,7 @@ initializeElectronRemote();
installEarlyLoggingListener();
installEarlyOpenUrlListener();

process.title = `${app.getName()} ${app.getVersion()}`;
process.title = app.getName();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we just remove it? Shouldn't take the title from the Info.plist?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0183839

process.title also overrides the actual command line, so that tools like ps don't display it (because the command line could include e.g. a connection string with credentials or a --password argument). We do the same in mongosh.

@lerouxb lerouxb merged commit 982347f into main Feb 26, 2024
17 checks passed
@lerouxb lerouxb deleted the sonoma-fix branch February 26, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants