Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL打开基岩版的功能寄了? #3985

Open
1 task done
MCSteve123 opened this issue Jun 8, 2024 · 10 comments · May be fixed by #3999
Open
1 task done

URL打开基岩版的功能寄了? #3985

MCSteve123 opened this issue Jun 8, 2024 · 10 comments · May be fixed by #3999
Labels
· Bug 处理中 开发者正在调查或处理该 Issue 🟩 低 优先度:低

Comments

@MCSteve123
Copy link

检查项

描述

原本用PCL的打开网页打开minecraft://可以直接启动基岩版的,现在直接报错?(Chrome可用)
image

重现步骤

用MFn233的主页预设,选择“更多”,“启动基岩版”

日志与附件

Log1.txt
一个够了,需要再传

@MCSteve123 MCSteve123 added · Bug 新反馈 需要社区初步确认其有效的新 Issue labels Jun 8, 2024
@MCSteve123
Copy link
Author

现在一定要以http开头了?

@WorldHim
Copy link
Collaborator

WorldHim commented Jun 8, 2024

不清楚
检查有没有安装基岩版
试试用 Win + R 输入 minecraft:// 能否正常打开基岩版

@JingHai-Lingyun
Copy link
Collaborator

JingHai-Lingyun commented Jun 8, 2024

现在是要求网址必须是以 http 开头

Public Sub OpenWebsite(Url As String)
Try
If Not Url.StartsWithF("http", True) Then Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")
Log("[System] 正在打开网页:" & Url)
Process.Start(Url)
Catch ex As Exception
Log(ex, "无法打开网页(" & Url & ")")
ClipboardSet(Url, False)
MyMsgBox("可能由于浏览器未正确配置,PCL 无法为你打开网页。" & vbCrLf & "网址已经复制到剪贴板,若有需要可以手动粘贴访问。" & vbCrLf &
$"网址:{Url}", "无法打开网页")
End Try
End Sub

另附一张 Debug 信息
image

@LTCatt LTCatt added 处理中 开发者正在调查或处理该 Issue 🟩 低 优先度:低 and removed 新反馈 需要社区初步确认其有效的新 Issue labels Jun 8, 2024
@XFKR
Copy link

XFKR commented Jun 9, 2024

在FireFox中输入 minecraft:// 无法打开 只会触发搜索
图片

在Microsoft Edge中 输入 minecraft:// 会显示如下
图片

图片

Windows 11 22H2在设置-应用-默认应用中可见一个名为Minecraft的链 默认应用仅能为MC基岩版
图片

@wifi-left
Copy link

image

@MCSteve123
Copy link
Author

image

@Silverteal
Copy link
Contributor

Silverteal commented Jun 9, 2024

EventType 打开网页 设计上只用于打开真正的网页。根据源代码中的建议,运行程序应该使用 EventType 打开文件,因此请尝试:

EventType:打开文件

EventData:cmd.exe|/c start /b cmd.exe /c start minecraft://

我个人一直认为通过自定义事件来运行外部程序是一种比较dirty且unsafe的实现,不过上述参数应该能满足要求。

JingHai-Lingyun added a commit to PCL-Community/PCL2-Fix-3985 that referenced this issue Jun 10, 2024
@MCSteve123
Copy link
Author

EventType 打开网页 设计上只用于打开真正的网页。根据源代码中的建议,运行程序应该使用 EventType 打开文件,因此请尝试:

EventType:打开文件

EventData:cmd.exe /c start minecraft:// 或 EventData:start minecraft://

我个人一直认为通过自定义事件来运行外部程序是一种比较dirty且unsafe的实现,不过上述参数应该能满足要求。

事实上不行(
image

JingHai-Lingyun added a commit to PCL-Community/PCL2-Fix-3985 that referenced this issue Jun 10, 2024
@JingHai-Lingyun JingHai-Lingyun linked a pull request Jun 10, 2024 that will close this issue
@Silverteal
Copy link
Contributor

Silverteal commented Jun 10, 2024

事实上不行(

抱歉,我之前的回复有误,EventData应该为:
cmd.exe|/c start /b cmd.exe /c start minecraft://

@MCSteve123
Copy link
Author

MCSteve123 commented Jun 10, 2024

cmd.exe|/c start /b cmd.exe /c start minecraft://

这玩意它弹黑框啊(虽然会自己关)
等会算了,先这样,PR也交了,不急

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· Bug 处理中 开发者正在调查或处理该 Issue 🟩 低 优先度:低
Projects
None yet
7 participants