Choose which browser to open link in
Clash Royale CLAN TAG#URR8PPP
I am using both Firefox and Google Chrome with multiple windows (profiles).
When clicking a link in e.g. a terminal or another GUI app I'd like to choose which browser/window to load the URL in instead of running the default browser (e.g. Firefox). Does anyone know if such a program exists?
From my (limited) understanding I think it should replace the default browser and show a popup with known browsers and/or active windows where the link should be delegated to.
If found this answer, but it is only looking for existing processes and starts a default one if none is found.
gui browser alternatives
add a comment |
I am using both Firefox and Google Chrome with multiple windows (profiles).
When clicking a link in e.g. a terminal or another GUI app I'd like to choose which browser/window to load the URL in instead of running the default browser (e.g. Firefox). Does anyone know if such a program exists?
From my (limited) understanding I think it should replace the default browser and show a popup with known browsers and/or active windows where the link should be delegated to.
If found this answer, but it is only looking for existing processes and starts a default one if none is found.
gui browser alternatives
add a comment |
I am using both Firefox and Google Chrome with multiple windows (profiles).
When clicking a link in e.g. a terminal or another GUI app I'd like to choose which browser/window to load the URL in instead of running the default browser (e.g. Firefox). Does anyone know if such a program exists?
From my (limited) understanding I think it should replace the default browser and show a popup with known browsers and/or active windows where the link should be delegated to.
If found this answer, but it is only looking for existing processes and starts a default one if none is found.
gui browser alternatives
I am using both Firefox and Google Chrome with multiple windows (profiles).
When clicking a link in e.g. a terminal or another GUI app I'd like to choose which browser/window to load the URL in instead of running the default browser (e.g. Firefox). Does anyone know if such a program exists?
From my (limited) understanding I think it should replace the default browser and show a popup with known browsers and/or active windows where the link should be delegated to.
If found this answer, but it is only looking for existing processes and starts a default one if none is found.
gui browser alternatives
gui browser alternatives
asked Dec 10 at 20:28
Melle
1162
1162
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can use the browser environment variable:
export BROWSER=firefox
or
export BROWSER=/path/to/browser
Doing this changes the default browser to use from within your user session.
You could write a script that asks you what browser to open and then set it to your default browser. Then anytime you click a link it will ask you.
Just set the $1 argument so it is sent to the browser you chose, so it opens that link.
Could look something like:
#!/bin/bash
website=$1
echo "What browser do you want to use? chrome firefox "
read browsera
$browsera $website
You could make it as fancy as you want. Make it so it catches invalid arguments and all sorts of stuff. You could even make it parse the input and depending on what the site is open a predetermined browser.
add a comment |
You can use xdg-mime
to set the default application to open URLs, without changing the default browser (xdg-settings
is used to set the default browser):
Get the default application (in your case firefox):
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
To set google-chrome a default application use the following comand:
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487203%2fchoose-which-browser-to-open-link-in%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use the browser environment variable:
export BROWSER=firefox
or
export BROWSER=/path/to/browser
Doing this changes the default browser to use from within your user session.
You could write a script that asks you what browser to open and then set it to your default browser. Then anytime you click a link it will ask you.
Just set the $1 argument so it is sent to the browser you chose, so it opens that link.
Could look something like:
#!/bin/bash
website=$1
echo "What browser do you want to use? chrome firefox "
read browsera
$browsera $website
You could make it as fancy as you want. Make it so it catches invalid arguments and all sorts of stuff. You could even make it parse the input and depending on what the site is open a predetermined browser.
add a comment |
You can use the browser environment variable:
export BROWSER=firefox
or
export BROWSER=/path/to/browser
Doing this changes the default browser to use from within your user session.
You could write a script that asks you what browser to open and then set it to your default browser. Then anytime you click a link it will ask you.
Just set the $1 argument so it is sent to the browser you chose, so it opens that link.
Could look something like:
#!/bin/bash
website=$1
echo "What browser do you want to use? chrome firefox "
read browsera
$browsera $website
You could make it as fancy as you want. Make it so it catches invalid arguments and all sorts of stuff. You could even make it parse the input and depending on what the site is open a predetermined browser.
add a comment |
You can use the browser environment variable:
export BROWSER=firefox
or
export BROWSER=/path/to/browser
Doing this changes the default browser to use from within your user session.
You could write a script that asks you what browser to open and then set it to your default browser. Then anytime you click a link it will ask you.
Just set the $1 argument so it is sent to the browser you chose, so it opens that link.
Could look something like:
#!/bin/bash
website=$1
echo "What browser do you want to use? chrome firefox "
read browsera
$browsera $website
You could make it as fancy as you want. Make it so it catches invalid arguments and all sorts of stuff. You could even make it parse the input and depending on what the site is open a predetermined browser.
You can use the browser environment variable:
export BROWSER=firefox
or
export BROWSER=/path/to/browser
Doing this changes the default browser to use from within your user session.
You could write a script that asks you what browser to open and then set it to your default browser. Then anytime you click a link it will ask you.
Just set the $1 argument so it is sent to the browser you chose, so it opens that link.
Could look something like:
#!/bin/bash
website=$1
echo "What browser do you want to use? chrome firefox "
read browsera
$browsera $website
You could make it as fancy as you want. Make it so it catches invalid arguments and all sorts of stuff. You could even make it parse the input and depending on what the site is open a predetermined browser.
edited Dec 10 at 21:08
answered Dec 10 at 20:46
Michael Prokopec
1,001116
1,001116
add a comment |
add a comment |
You can use xdg-mime
to set the default application to open URLs, without changing the default browser (xdg-settings
is used to set the default browser):
Get the default application (in your case firefox):
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
To set google-chrome a default application use the following comand:
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
add a comment |
You can use xdg-mime
to set the default application to open URLs, without changing the default browser (xdg-settings
is used to set the default browser):
Get the default application (in your case firefox):
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
To set google-chrome a default application use the following comand:
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
add a comment |
You can use xdg-mime
to set the default application to open URLs, without changing the default browser (xdg-settings
is used to set the default browser):
Get the default application (in your case firefox):
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
To set google-chrome a default application use the following comand:
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
You can use xdg-mime
to set the default application to open URLs, without changing the default browser (xdg-settings
is used to set the default browser):
Get the default application (in your case firefox):
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
To set google-chrome a default application use the following comand:
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
edited Dec 10 at 21:58
answered Dec 10 at 21:50
GAD3R
25.2k1749106
25.2k1749106
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
add a comment |
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
I'd like to do this per URL I click on / I'm redirected to. Setting the default scheme handlers would not work in this case I think.
– Melle
Dec 11 at 20:37
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487203%2fchoose-which-browser-to-open-link-in%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown