mirror of
https://github.com/electerm/electerm-web.git
synced 2026-04-25 05:45:55 +03:00
[GH-ISSUE #13] window.pre.readClipboard is not a function & xdg-open: no method available for opening #7
Labels
No labels
bug
feature
need investigate
need investigate
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/electerm-web#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DkuangfengR on GitHub (Apr 18, 2024).
Original GitHub issue: https://github.com/electerm/electerm-web/issues/13
electerm-web Version and download file extension(electerm-web版本和下载文件后缀)
latest
Platform detail (平台详情)
x86_64 GNU/Linux
What steps will reproduce the bug?(重新问题的详细步骤)
open the file browser, select a file on right click error: window.pre.readClipboard is not a function & on double right click error: xdg-open: no method available for opening ///**(the file path)
What should have happened?(期望的结果)
I want to upload and download file on my server
Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)
yes
Additional information(其他任何相关信息)
No response
@DkuangfengR commented on GitHub (Apr 18, 2024):
@zxdong262 commented on GitHub (Apr 18, 2024):
Can not see the screenshot you upload, can you provide more detail, how did you trigger file upload?
@DkuangfengR commented on GitHub (Apr 18, 2024):
I got it, function readClipboard in version 2.38.8 was "readClipboard: ()=>window.et.clipboard || "";", but in version 2.38.65 it is changed into readClipboardSync , the navigitor.clickboard.readText() returns a Promise, so it will be error when it is called by r.split in electerm-2.38.65.js, if you can't get me well still, I'll update the screenshot as soon as possible. thank you so much!
, Cc = (r=_r())=>r.split(`).reduce((e,t)=>e && (ep.test(t) || Ju.test(t)), !0)
, np = (r=_r())=>r.split(``
@zxdong262 commented on GitHub (Apr 18, 2024):
Got it, would fix in next release, thank you for the feedback
@zxdong262 commented on GitHub (Apr 19, 2024):
Fixed now, you may try the latest code