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: beep on Ubuntu #16350

Merged
merged 1 commit into from Jan 10, 2019
Merged

fix: beep on Ubuntu #16350

merged 1 commit into from Jan 10, 2019

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Jan 10, 2019

Description of Change

The shell.beep() implementation for Linux works by writing BEL to /dev/console. However, /dev/console requires elevated permissions on Ubuntu. So if opening /dev/console fails, use /dev/tty as a fallback.

There's no particular stakeholder for this, but CC'ing @BinaryMuse as she was participating in the Linux Beep discussion earlier

Checklist

Release Notes

Notes: Fixed shell.beep() on Ubuntu.

beeps on Linux are made by writing BEL to /dev/console,
which requires elevated permissions on Ubuntu. So if
opening /dev/console fails, fall back to /dev/tty.
@ckerr ckerr requested a review from a team January 10, 2019 18:29
@BinaryMuse
Copy link
Contributor

image

@codebytere codebytere merged commit 52852b9 into master Jan 10, 2019
@release-clerk
Copy link

release-clerk bot commented Jan 10, 2019

Release Notes Persisted

Fixed shell.beep() on Ubuntu.

@codebytere codebytere deleted the beep-ubuntu branch January 10, 2019 21:43
@trop
Copy link
Contributor

trop bot commented Jan 10, 2019

I have automatically backported this PR to "4-0-x", please check out #16357

akisctx pushed a commit to akisctx/electron that referenced this pull request Jan 22, 2019
beeps on Linux are made by writing BEL to /dev/console,
which requires elevated permissions on Ubuntu. So if
opening /dev/console fails, fall back to /dev/tty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants