[GH-ISSUE #13] window.pre.readClipboard is not a function & xdg-open: no method available for opening #7

Open
opened 2026-02-26 22:31:11 +03:00 by kerem · 5 comments
Owner

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

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_
Author
Owner

@DkuangfengR commented on GitHub (Apr 18, 2024):

Uploading error.png…

<!-- gh-comment-id:2063243810 --> @DkuangfengR commented on GitHub (Apr 18, 2024): ![Uploading error.png…]()
Author
Owner

@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?

<!-- gh-comment-id:2063263664 --> @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?
Author
Owner

@DkuangfengR commented on GitHub (Apr 18, 2024):

Can not see the screenshot you upload, can you provide more detail, how did you trigger file upload?

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(``

<!-- gh-comment-id:2063664978 --> @DkuangfengR commented on GitHub (Apr 18, 2024): > Can not see the screenshot you upload, can you provide more detail, how did you trigger file upload? 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(``
Author
Owner

@zxdong262 commented on GitHub (Apr 18, 2024):

Got it, would fix in next release, thank you for the feedback

<!-- gh-comment-id:2064130170 --> @zxdong262 commented on GitHub (Apr 18, 2024): Got it, would fix in next release, thank you for the feedback
Author
Owner

@zxdong262 commented on GitHub (Apr 19, 2024):

Fixed now, you may try the latest code

<!-- gh-comment-id:2065864319 --> @zxdong262 commented on GitHub (Apr 19, 2024): Fixed now, you may try the latest code
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm-web#7
No description provided.