PowerToys Run Web Search插件无法打开Arc,

inkz8wg9  于 2个月前  发布在  其他
关注(0)|答案(4)|浏览(27)

Microsoft PowerToys版本

0.80.1

安装方法

Microsoft商店

以管理员身份运行

出现问题的区域?

PowerToys Run

重现步骤

  1. 将默认浏览器设置为Arc。
  2. 启用PowerToys Run和内置的Web搜索插件,并将直接激活命令设置为"??"。
  3. 触发PowerToys Run,输入"?? my search query"。
  4. 选择"在Arc中搜索网页"选项。

预期行为

打开Arc中的新标签页,导航到"my search query"的搜索结果页面。

实际行为

有时会出现错误消息,提示"无法打开Arc"。其他时候,焦点会切换到Arc,但不会打开新标签页。

其他软件

Arc from The Browser Company

  • 构建信息:1.0.1.24682(0000)
  • OS版本:10.0.22621
  • Chromium引擎版本:124.0.6367.92
4urapxun

4urapxun1#

你好,我是一个基于问题标题查找相似问题的AI机器人。
请查看下面的问题,看看它们是否解决了你的问题。如果问题描述了你的问题,请考虑关闭此问题并为其他问题点赞,以帮助我们优先处理。谢谢!
已关闭的相似问题:

注意:您可以通过点赞或点踩这条评论来给我反馈。

ktecyv1j

ktecyv1j2#

可能的重复问题:#31803

yfjy0ee7

yfjy0ee73#

我无法在Microsoft商店中找到Arc,但根据u/itmeBlurb "it installs using Microsoft's App Installer format, which is ran through the MS Store."
这让我相信问题是Wox.Plugin.Common.DefaultBrowserInfo.Path,因为当通过Microsoft商店安装Firefox时,也出现了类似的问题(#19260)。我认为修复(#20350)应该是相似的。
我本来打算提交一个pull请求,但真的不知道我在做什么。这是我要对src/modules/launcher/Wox.Plugin/Common/DefaultBrowserInfo.cs所做的更改。

oewdyzsn

oewdyzsn4#

我无法在Microsoft商店中找到Arc,但根据u/itmeBlurb "it installs using Microsoft's App Installer format, which is ran through the MS Store."
这让我相信问题是Wox.Plugin.Common.DefaultBrowserInfo.Path,因为当通过Microsoft商店安装Firefox时,也出现了类似的问题(#19260)。我认为修复方法(#20350)应该是相似的。
我本来打算提交一个pull请求,但真的不知道我在做什么。这是我要对src/modules/launcher/Wox.Plugin/Common/DefaultBrowserInfo.cs所做的更改。

// HACK: for browsers installed through Microsoft Store
                    // When installed through Microsoft Store the commandPattern does not have
                    // quotes for the path. As the Program Files does have a space
                    // the extracted path would be invalid, here we add the quotes to fix it.
                    const string ArcExecutableName = "arc.exe";
                    const string FirefoxExecutableName = "firefox.exe";
                    string executableName = commandPattern.Contains(ArcExecutableName) ? ArcExecutableName : commandPattern.Contains(FirefoxExecutableName) ? FirefoxExecutableName : '';
                    if (!string.IsNullOrEmpty(executableName) && commandPattern.Contains(@"\WindowsApps\") && (!commandPattern.StartsWith('\"')))
                    {
                        var pathEndIndex = commandPattern.IndexOf(executableName, StringComparison.Ordinal) + executableName.Length;
                        commandPattern = commandPattern.Insert(pathEndIndex, "\"");
                        commandPattern = commandPattern.Insert(0, "\"");
                    }

@hankyusa, @jaimecbernardo可能会在这里提供帮助,如果你提交了一个PR,看起来确实与#19260和修复方法#20350相似。

相关问题