-
Notifications
You must be signed in to change notification settings - Fork 945
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding notice on snap permissions (#790)
- Loading branch information
1 parent
2f0b826
commit 3bb9dd8
Showing
6 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from PyQt6.QtWidgets import QDialog, QVBoxLayout, QTextEdit, QLabel, QPushButton | ||
from buzz.locale import _ | ||
|
||
|
||
class SnapNotice(QDialog): | ||
def __init__(self, parent=None): | ||
super().__init__(parent) | ||
|
||
self.setWindowTitle(_("Snap permission notice")) | ||
|
||
self.layout = QVBoxLayout(self) | ||
|
||
self.notice_label = QLabel(_("No input devices found, please check that snap permissions have been granted")) | ||
self.layout.addWidget(self.notice_label) | ||
|
||
self.instruction_label = QLabel(_("To enable necessary permissions run the following commands in the terminal")) | ||
self.layout.addWidget(self.instruction_label) | ||
|
||
self.text_edit = QTextEdit(self) | ||
self.text_edit.setPlainText( | ||
"sudo snap connect buzz:audio-record\n" | ||
"sudo snap connect buzz:password-manager-service\n" | ||
"sudo snap connect buzz:pulseaudio\n" | ||
"sudo snap connect buzz:removable-media" | ||
) | ||
self.text_edit.setReadOnly(True) | ||
self.text_edit.setFixedHeight(80) | ||
self.layout.addWidget(self.text_edit) | ||
|
||
self.button = QPushButton(_("Close"), self) | ||
self.button.clicked.connect(self.close) | ||
self.layout.addWidget(self.button) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters