• <i id='oidw0'><tr id='oidw0'><dt id='oidw0'><q id='oidw0'><span id='oidw0'><b id='oidw0'><form id='oidw0'><ins id='oidw0'></ins><ul id='oidw0'></ul><sub id='oidw0'></sub></form><legend id='oidw0'></legend><bdo id='oidw0'><pre id='oidw0'><center id='oidw0'></center></pre></bdo></b><th id='oidw0'></th></span></q></dt></tr></i><div id='oidw0'><tfoot id='oidw0'></tfoot><dl id='oidw0'><fieldset id='oidw0'></fieldset></dl></div>

  • <tfoot id='oidw0'></tfoot>

    1. <small id='oidw0'></small><noframes id='oidw0'>

          <bdo id='oidw0'></bdo><ul id='oidw0'></ul>
        <legend id='oidw0'><style id='oidw0'><dir id='oidw0'><q id='oidw0'></q></dir></style></legend>

        如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?

        How to prevent popping-up xdg-open dialogue from Ubuntu chrome while opening specific link?(如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?)

        <small id='Lcs5j'></small><noframes id='Lcs5j'>

          • <legend id='Lcs5j'><style id='Lcs5j'><dir id='Lcs5j'><q id='Lcs5j'></q></dir></style></legend>
            <i id='Lcs5j'><tr id='Lcs5j'><dt id='Lcs5j'><q id='Lcs5j'><span id='Lcs5j'><b id='Lcs5j'><form id='Lcs5j'><ins id='Lcs5j'></ins><ul id='Lcs5j'></ul><sub id='Lcs5j'></sub></form><legend id='Lcs5j'></legend><bdo id='Lcs5j'><pre id='Lcs5j'><center id='Lcs5j'></center></pre></bdo></b><th id='Lcs5j'></th></span></q></dt></tr></i><div id='Lcs5j'><tfoot id='Lcs5j'></tfoot><dl id='Lcs5j'><fieldset id='Lcs5j'></fieldset></dl></div>
              <tfoot id='Lcs5j'></tfoot>

                <bdo id='Lcs5j'></bdo><ul id='Lcs5j'></ul>
                    <tbody id='Lcs5j'></tbody>

                  本文介绍了如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用桌面网络 whatsapp(chrome、ubuntu)加入一个 whatsapp 组.当我点击加入群组时,它会显示下面的对话.我想永远从 chrome 中删除这个对话.我可以在关闭 xdg-open 对话后再次点击加入群组来加入群组.

                  我尝试了

                  解决方案

                  此解决方案适用于 Google Chrome 84.0.4147.89,适用于特定类型的 xdg 链接.例如,如果有问题的链接是 whatsapp://someurl,您可以使用:

                  sudo mkdir -p/etc/opt/chrome/policies/managed/&&echo '{ "URLWhitelist": ["whatsapp://*"] }' |sudo tee/etc/opt/chrome/policies/managed/whitelist.json

                  I am trying to join a whatsapp group using desktop web whatsapp (chrome, ubuntu). When I click on Join Group, It shows dialogue below.I want to remove this dialogue forever from chrome. I can join the group by clicking again on join the group after dismissing the xdg-open dialogue.

                  I tried Reset chrome protocol_handler chrome with no luck.

                  I also tried to dismiss the dialogue using python selenium with no luck using below code.

                                 try:
                  
                                      WebDriverWait(browser, 3).until(EC.alert_is_present(),
                                             'Timed out waiting for PA creation ' +
                                             'confirmation popup to appear.')
                                      #if it doe
                                      alert = browser.switch_to.alert()
                                      alert.accept()
                                      print "alert accepted"
                                  except TimeoutException:
                                      print "no alert"
                                      pass
                  

                  Is there a way to dismiss the dialogue using python selenium or using some configuration file changes in chrome installation ?

                  解决方案

                  This solution works on Google Chrome 84.0.4147.89, for specific types of xdg links. For example, if the link in question is whatsapp://someurl, you can use:

                  sudo mkdir -p /etc/opt/chrome/policies/managed/ && echo '{ "URLWhitelist": ["whatsapp://*"] }' |sudo tee /etc/opt/chrome/policies/managed/whitelist.json
                  

                  这篇关于如何防止在打开特定链接时从 Ubuntu chrome 弹出 xdg-open 对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  env: python: No such file or directory(env: python: 没有这样的文件或目录)
                  How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                  Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                  Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                  Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                  When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)
                    <tbody id='Mz12g'></tbody>
                  • <legend id='Mz12g'><style id='Mz12g'><dir id='Mz12g'><q id='Mz12g'></q></dir></style></legend>

                      1. <i id='Mz12g'><tr id='Mz12g'><dt id='Mz12g'><q id='Mz12g'><span id='Mz12g'><b id='Mz12g'><form id='Mz12g'><ins id='Mz12g'></ins><ul id='Mz12g'></ul><sub id='Mz12g'></sub></form><legend id='Mz12g'></legend><bdo id='Mz12g'><pre id='Mz12g'><center id='Mz12g'></center></pre></bdo></b><th id='Mz12g'></th></span></q></dt></tr></i><div id='Mz12g'><tfoot id='Mz12g'></tfoot><dl id='Mz12g'><fieldset id='Mz12g'></fieldset></dl></div>

                        <small id='Mz12g'></small><noframes id='Mz12g'>

                        <tfoot id='Mz12g'></tfoot>
                          <bdo id='Mz12g'></bdo><ul id='Mz12g'></ul>