mirror of
https://github.com/paul-nameless/tg
synced 2024-11-25 05:10:22 +00:00
commit
6f7c321c1d
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ def truncate_to_len(s: str, target_len: int, encoding: str = "utf-8") -> str:
|
|||
|
||||
|
||||
def copy_to_clipboard(text):
|
||||
subprocess.run(config.COPY_CMD, universal_newlines=True, input=text)
|
||||
subprocess.run(
|
||||
config.COPY_CMD, universal_newlines=True, input=text, shell=True
|
||||
)
|
||||
|
||||
|
||||
class suspend:
|
||||
|
|
Loading…
Reference in a new issue