Changing Default Browser for Print Bindings or ardour -A

Is there a way to change the default Browser that is called by Ardour 8.11 in linux ubuntu 24.04 to access print bindings or be able to use “ardour -A”? terminal: ardour -A causes Ardour to crash when it cant find browser. I have attempted to change any default settings wtihin Ubuntu but it seems that the Browser call seems to be controlled by Ardour. In this case, my Browser was replaced but Ardour is still looking for missing browser. I would be happy with any browser responding.

Thank you.

Ardour appears to be using the standard “xdg-open” call in Linux (PBD::open_uri in libs/pbd/openuri.cc).

Run xdg-settings get default-web-browser in a terminal and check what it says.
I get “custom-WebBrowser.desktop” and when I do a locate custom-WebBrowser.desktop it’s in ~/.local/share/xfce4/helpers/custom-WebBrowser.desktop (since I’m using Xfce4 and I created my own desktop shortcut for Firefox).

Presumably you run Gnome but if you create your own desktop shortcut to your browser it should create a ~/.local/share/gnome/helpers/custom-WebBrowser.desktop, or something similar.
If so you should be able to run xdg-settings set default-web-browser custom-WebBrowser.desktop to then get Ardour’s browser call to work.

You can also just look for a file in /tmp it will be named

/tmp/list-of-menu-actionsXXXXX.html

with XXXXX being some random unique chars. and open that in a browser.

Thank you very much. Found file akprint in /tmp which was only html. copied to desktop and opened in browser.
Is there a way to get Ardour to produce “ardour -A” without crashing cause it still looks for this uninstalled pesky browser?

Let me rephrase what Peder said above … Ardour is not looking for a browser. xdg-open is a standard command on Linux systems that will handle a variety of file types with a variety of tools, including a web browser

If xdg-open does not work, it indicates that your system is misconfigured.

You can try running it inside a terminal to see what it does.

Thank you Paul, Robin, and Peder,
So I realize this is more of a linux issue but I was able to fix it based on your help so Thank you again.

Usiing Ubuntu Studio, my situation showed the following based on your suggestions: xdg-open did not work but xdg-settings default browser showed firefox but weirdly I dont have a firefox.desktop file in /home/user/.local/share/applications folder so needed to create one.

In case anyone has this weird issue, I was able to fix it based on creating a firefox.desktop file in home folder /.local/share/applications with code:

converted by firecfg

[Desktop Entry]
Type=Application
Name=Firefox
GenericName=Web Browser

Gnome and KDE 3 uses Comment.

Comment=Web Browser
StartupNotify=true
Terminal=false
Type=Application
MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
Comment=Firefox Browser
Categories=Network;WebBrowser;Security;
StartupWMClass=firefox-default
Exec=firefox %u
Icon=firefox

Actions=new-window;new-private-window;safe-mode;preferences;

[Desktop Action new-window]
Name=New Window
Exec=firefox
[Desktop Action new-private-window]
Name=New Private Window
Exec=firefox --private-window %u
[Desktop Action safe-mode]
Name=Start in Safe Mode
Exec=firefox --safe-mode
[Desktop Action preferences]
Name=Show Preferences
Exec=firefox --preferences

Then as Peder stated run in terminal:
xdg-settings set default-web-browser firefox.desktop

Now my ardour -A is fixed.

Thanks again.