xdg-open URL & choose browser profile
I'm running different firefox.desktop and google-chrome.desktop browser profiles. Current xdg-mime query default "text/html" reports firefox.desktop, but I'm looking to quickly switch or have some dmenu option to choose which browser instance to open a link in.
I know how to switch profiles using -P in Firefox, but in chrome it's --user-data-dir I guess? Anyone have a good solution for this problem?
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- obd301
4 comments
I'm actually really confused now, since Firefox still opens despite:
I should have been using
xdg-settings set default-web-browser google-chrome.desktop... I've documented my leanings so far upon https://dabase.com/tips/archlinux/2021/Setting-the-default-browser/I am still a little confused how to choose profiles and to show the path of the desktop file.
text/htmlmight be just local html files. You need to setx-scheme-handler/httpandx-scheme-handler/https.~/.config/mimeapps.list
No need to use xdg-open from commandline for anything else than querying the filetyeps, I for example have it set to open any youtube link in mpv rather than fireforx, this way my gui rss reader I only use for youtube channels opens and queues them in mpv.
You can do whatever menus you want, before using an rss reader I downloaded all the thumbnails of yt videos to a folder and made img.desktop load the url contained in the image name in mpv rather than open the img if it's in that one specific folder.