Configuring Default Browser for Shiny #4568
Replies: 2 comments 1 reply
-
In terms of editing the JSON, sometimes you might have better luck using the UI version of editing your settings: The JSON that creates is like this: "workbench.externalUriOpeners": {
"http": "positron.viewer"
} However, I don't think doing this will avoid you being prompted to choose among the options, since VS Code and Positron both already provide default openers. Take a look here:
I think the best way to think about this is that you already have several default openers (your external browser, Positron's Viewer, VS Code's Simple Browser). You could add another default opener, but then you would just have more to choose from; it doesn't become the default choice over the other defaults. Let me know if you have further questions! |
Beta Was this translation helpful? Give feedback.
-
I have also been struggling with this. I think there's a conflict between what I expect(ed) the setting to do, and what it is actually doing. I am just adding this comment here in case it is helpful at all to the OP or anyone else finding this. So, based on Julia's response, what I am now understanding is that the However my original understanding of what would happen if I set this, was that the "Configure default opener..." menu option would allow me to specify a particular browser or option that I always want to open http links with, thereby skipping the "How would you like to open..." dropdown step.
This explanation from Julia is helpful in terms of understanding what is happening here, and why even when I set the But my comment/suggestion would be that the wording here is potentially unhelpful. As a user, if I set a default option, it makes sense to me to assume that Positron will then use that default option without asking me every time. The phrase "several default openers" doesn't make sense to me, as I would understand a 'default' to be a single option out of several, you can't have multiple defaults as that is not what the word means. Ultimately, I want to be able to tell Positron to always open my site in my external browser, not to ask me every time. I never want to open it in the Viewer pane or the simple browser. I am not sure how to achieve this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Loving the new IDE and decided to take a stab at a Shiny for Python project (normally an R user here) to learn try and learn two things simultaneously! I'm hoping to get some help configuring the default browser that an app opens in.
Step 1: Run

shiny run
in the terminalStep 2: Helpful dialogue box pops up at the top asking how I want to open the app (see screenshot)
Step 3: I click on 'Configure default opener... which opens up by settings.json
Step 4: settings.json opens to a new property, but I can't figure out how to make it open with Chrome (I'm on a Mac). Abbreviated json below:
Has anyone else had success with getting this set up? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions