archcraft-os / archcraft

// Source : ISO
https://archcraft.io
GNU General Public License v3.0
3.03k stars 104 forks source link

Change default browser #328

Closed ismanolgarcia closed 8 months ago

ismanolgarcia commented 1 year ago

Cheers ! Can someone help me, I want to know how to set another browser as default. Example: google chrome

BTWarchBTW commented 1 year ago

The chrome or any other browser will tell you that you don't have set it to default, "do you want to make browser x to be your default browser?" You can just yess to that Simplest way

ismanolgarcia commented 1 year ago

Yes I tried that but I want to know if there will be an alternative to do it through the terminal

TOLIE-OFFICIAL commented 1 year ago

The chrome or any other browser will tell you that you don't have set it to default, "do you want to make browser x to be your default browser?" You can just yess to that Simplest way

it seems that it will not work when i change to google-chrome from firefox :(

ismanolgarcia commented 1 year ago

Chrome o cualquier otro navegador le dirá que no lo ha configurado como predeterminado, "¿quiere que el navegador x sea su navegador predeterminado?" Puedes simplemente decir sí a esa forma más simple

parece que no funcionará cuando cambie a google-chrome desde firefox :(

If the same thing happens to me, I'm looking for an alternative that can be defined as default by some file from the terminal

anthonyportugal commented 1 year ago

Searching for information about it I found the following, you can set it in ~/.config/mimeapps.list

[Default Applications]
text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

In case you need to do it with a command from the terminal, you could create a script that modifies the file with the values for each browser

ktunprasert commented 1 year ago

There's an XFCE settings manager in the global super menu called "Settings Manager" you can set your default browser from there. You can test whether this has taken affect by trying to xdg-open a link