8

I'm using Kubuntu 19.10 and I have a problem with xdg-open.

Every link that redirects to an application doesn't work. For example slack links: I am on their website, when the link of accessing a workspace appear I only get the popup: "Open xdg-open?" and then nothing happens.

Same thing for zoom video calls. I click the link that should redirect me from the browser to the zoom application, same pop-up and nothing happens.

How can I fix it? The only thing that looks correct is the browser, so if I run in my terminal: xdg-open www.google.com it opens the window on my default browser

ste
  • 181

2 Answers2

1

I had the same problem. I run Debian Buster
Stevel's answer here on the Linux stack exchange helped me solve it.

To elaborate on how to apply the fix.

  1. Open up the the xdg-open file as a superuser so you can edit and save the file.
    You should find the file at usr/bin/xdr-open
    Alternatively run the command which xdg-open in your terminal to find the path to the xdg-open file
  2. Find the line that reads if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then using Ctrl+F or however you want.
  3. Edit the -a on that line to &&
    Your edited line should read if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
  4. Save and test.

Good luck!

0

What is xdg-open?

xdg-open is a command-line tool on Linux used to open files or URLs with their default application.

It works in XDG-compliant desktop environments (like GNOME, KDE).

Example Use Case:

This is particularly useful if you are using a web-based version of WhatsApp (like WhatsApp Web), Zoom... and you want all links to open directly in your browser instead of a native application.

Example Use Case for Zoom (your case!!):

If you want to open Zoom meeting links in a specific browser:

  1. Open a terminal.
  2. Run:
    xdg-mime default google-chrome.desktop 'x-scheme-handler/zoommtg'
    
    Google Chrome will now open zoommtg:// links.

Example of how to use it for WhatsApp:

  1. Open a terminal.
  2. Run:
    xdg-mime default google-chrome.desktop 'x-scheme-handler/whatsapp'
    
    Google Chrome will now open whatsapp:// links.