mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 07:48:57 +00:00
Raise ClipboardUnavailableError on all platforms
This commit is contained in:
@@ -26,7 +26,10 @@ def _ensure_clipboard() -> None:
|
|||||||
"Clipboard support requires the 'xclip' package. "
|
"Clipboard support requires the 'xclip' package. "
|
||||||
"Install it with 'sudo apt install xclip' and restart SeedPass.",
|
"Install it with 'sudo apt install xclip' and restart SeedPass.",
|
||||||
) from exc
|
) from exc
|
||||||
raise
|
raise ClipboardUnavailableError(
|
||||||
|
"No clipboard mechanism available. Install a supported clipboard tool or "
|
||||||
|
"run SeedPass with --no-clipboard."
|
||||||
|
) from exc
|
||||||
|
|
||||||
|
|
||||||
def copy_to_clipboard(text: str, timeout: int) -> bool:
|
def copy_to_clipboard(text: str, timeout: int) -> bool:
|
||||||
|
Reference in New Issue
Block a user