Questions tagged [xdg-open]

Xdg-open is part of the xdg-utils package. When invoked from the command-line it can open any file in the default application or an url in the default browser.

Filter by
Sorted by
Tagged with
0 votes
2 answers
56 views

Open Microsoft Edge in Ubuntu

I run Ubuntu on my Windows laptop, and I only use the Microsoft Edge browser. I tried to used the 'xdg-open' to open the desire website, but Microsoft Edge is not listed in the supported browser. Can ...
1 vote
2 answers
58 views

How to hide desktop from Ubuntu Desktop Applications UI

I found the following link for changing file types application: https://superuser.com/questions/21626/ubuntu-change-the-default-program-used-to-open-a-type-of-file Here is the command for associating ...
2 votes
1 answer
114 views

xdg-open preferes opening pdf files with libreoffice rather than Document viewer since I removed Adobe?

I removed Adobe from my Ubuntu 22.04.3 LTS and, since then, xdg-open file.pdf opens the file with libreoffice rather than Document viewer. Purging libreoffice completely solves the problem, however it ...
4 votes
0 answers
3k views

xdg-document is keeping my files open

I use Master PDf editor installed through flathub to edit some PDf files. When I close it, I can sse by lsof | grep /media/<MYUSER>/<DEVICE> that xdg-document is keeping my file open. What ...
2 votes
2 answers
6k views

telnet://IP from Firefox and Chrome

I have a problem initiating telnet sessions (telnet://IP) from Firefox and Chrome. With Chrome I have the following problem: When I click the telnet link, appears the "External Protocol Request" ...
4 votes
1 answer
912 views

How do I add a file type to XDG?

Using LXQT, the file manager (PCManFM-QT) is showing all files with unrecognized suffixes as "text/plain". I've added an entry to /etc/mime.types mapping a new suffix to a new application/x-...
0 votes
0 answers
129 views

Prevent xdg-open to open mistyped files as URLs

I am often inadvertently trying to open incomplete filenames with xdg-open, because of the presence of several files with the same basename but different extensions, e.g. very-long-filename.tex, very-...
5 votes
3 answers
5k views

open whatsapp links with web.whatsapp.com

There is still no way to install a native Linux application for whatsapp, so I always use whatsapp's webapp with my daily browser (chromium based brave-browser). Everything works [mostly] fine, except ...
1 vote
0 answers
208 views

Ubuntu 22.04: xdg-open opening Text Editor instead of browser when called from C++ program

I'm a currently running on Ubuntu 22.04 and calling the following xdg-open system call from a C++ program: QString cmd = "xdg-open /home/user/foo.html &"; int ret = system(cmd....
1 vote
1 answer
567 views

xdg-open not working via ssh terminal session

I have performed file association for my custom extension(.vwxy), I have created the mime specification file and the desktop entry file for that. I m able to launch my application via xdg-open <...
0 votes
0 answers
213 views

Discord app won't open through Brave browser. xdg-open

Whenever I want to join a new server I receive the pop-up for Open-xdg-open but this does nothing. This is only happening in Brave browser for Discord specifically, other apps and browsers are working ...
1 vote
1 answer
99 views

cannot identify xdg-open behaviour for console application

I have created file association for a console application which accepts inputs from stdin and gives output at the stdout. It works normally when I run the application from the terminal using ./myExe. ...
0 votes
0 answers
52 views

Snap browsers don't open pdf

I use chromium and firefox on kinetic, both don't open PDFs with system handler properly. If chromium is allowed to show PDFs, then firefox opens PDFs i a chromium window. If chromium is not allowed ...
2 votes
1 answer
3k views

Why does xdg-open use wslview?

Using Ubuntu 22.04 LTS, KDE Plasma 5, with wine 7.8 installed. When I try to use the command xdg-open . the expected mime type (for inode/directory is Dolphin) is not invoked. Instead wslview is ...
3 votes
2 answers
6k views

`xdg-open` does not open files in the preferred applicaton

xdg-open does not work as expected. It opens most my files in browser, directories in my code editor(VS code) and plain text files using less. It also throws this error message, $ xdg-open $HOME xdg-...
6 votes
3 answers
970 views

How to open a PDF file with "Master PDF Editor" application from terminal?

I want to open a PDF file from terminal. I only know the command xdg-open file-name.xxx to open a file. But once I use this command, it opens the PDF file with the Document Viewer application (Evince)....
1 vote
1 answer
494 views

`xdg-open` thinks I'm running WSL, and fails because I'm not? [duplicate]

When I try to open a pdf file with xdg-open file.pdf, I get the following error message: jonas@jonas-thinkpad:~$ xdg-open file.pdf grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory ...
2 votes
1 answer
489 views

wine (64bit prefix) fails url opening from the app

Launching KSPLauncher (Kerbal space program) everything works smoothly except this ... every time I want to open some web links I see jumping firefox icon near my cursor for 3 seconds then nothing ...
0 votes
1 answer
2k views

Browser won't open Zoom using xdg

I have installed Zoom on Ubuntu 22.04, but cannot login, since my browsers (any of them, firefox, chrome, brave) will not open Zoom by xdg tag zoommtg. Some people had issues with the capital Z, but ...
0 votes
1 answer
289 views

How to start xdg-open shortcut within conda environment (Using app installed with conda as xdg-open app)

I installed QGIS using conda. If I start qgis from the terminal it works well as it has everything it needs to use in the PATH as defined by the conda base environment. However I cannot pin that app ...
1 vote
1 answer
500 views

Open new tab in gnome "Files"

If I run xdg-open ~/Documents/ , it will open "Documents" in a new Files window. If I then run xdg-open ~/Pictures/, it will open another window. Is there a way to open a location in an ...
10 votes
4 answers
3k views

Opening Links from some applications takes a long time

When I click on links in some applications it can take up to a minute until the open in the browser. This is regardless if the default browser is chrome or firefox. Example applications where opening ...
3 votes
1 answer
1k views

mimetype not identifying pdf files: mime hell

I have never had issues with opening pdf files until recently. Then, I wanted to readup on the xcolor package for TeX and entered the following command: texdoc xcolor This has always worked, opening ...
1 vote
1 answer
128 views

Permissions makes libreoffice go in a crash-loop when opening from terminal

I am having some permission issues with libreoffice that I just don't have the technical provess to understand. ISSUE when I run localc directly from terminal, it goes into a loop: the program crashes ...
2 votes
2 answers
2k views

How to open PDF files on Telegram with my preferred application in Kubuntu?

Whenever I open a PDF document in Telegram, it opens in Xournal++. But I want it to open with Okular, which I have set as the default PDF reader. PDF documents in Dolphin do open with Okular. How to ...
0 votes
1 answer
2k views

How can I define a Wine application to handle special links?

Is it possible to activate a wine application when I click a URL having a specific method? More specifically my question is this: I have used amule in the past to handle ed2k: links. When I clicked an ...
2 votes
0 answers
546 views

Slow Image Opening with xdg-open/ eog in Folder of many Files

I am using Ubuntu 20.04 and I have a folder with many .png and .json files (+100k in total, no sub-folder within the folder). When I tried to open one of its .png images with xdg-open abc.png or eog ...
0 votes
0 answers
257 views

chromium+xdg-open Wireshark from an URL scheme handler: Couldn't run /usr/bin/dumpcap in child process: Permission denied

I need to start the local Wireshark from the web user interface of a web service to immediately start a capture session, using some external capture plugin to connect to the web service. When using ...
3 votes
1 answer
2k views

Why xdg-open should not be used as root?

**xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root.** Why does the manual page say the above ?
1 vote
1 answer
2k views

Opening webdav ms-word:ofe|u| protocol links with LibreOffice

I use Ubuntu in my personal computer. Computers at work with Windows work with this link; it open the word file with microsoft office. ms-word:ofe|u|https://serveraddress/path/to/file.doc But in ...
1 vote
2 answers
1k views

Chromium is not open Zoom by xdg-open

I installed Ubuntu 20.04 LTS, Chromium 81.0.4044.138 and Zoom 5.0.403652.0509. When try to open link to Zoom conference appears window "Open xdg-open?". Unfortunately nothing happened. I used tip from ...
0 votes
1 answer
2k views

How to return from xdg-open within a shell script

I have some shell functions which allow me to quickly open something in my browser, for example: issue () { if [[ -z "$1" ]] then xdg-open "https://github.com/myname/...
29 votes
5 answers
91k views

How can I set which application is launched by 'xdg-open'?

I have run update-alternatives as well as the GNOME Preferred apps selection thing. And all point to have the Chromium browser as the default. Yet, when I run xdg-open http://askubuntu.com, Firefox is ...
11 votes
2 answers
10k views

Xdg-open doesn't do anything, Zoom in Chromium,

I'm running Ubuntu 18.04.4 LTS. As the title says, when prompt to "xdg open" on Zoom (chromium browser), nothing happens and I can't do a conference call. Does anyone know what might be the issue? I'...
1 vote
0 answers
442 views

Can xdg-open open a different browser for specific URLs?

I'd like xdg-open to use a non-default browser when I click a work related link. Maybe I could configure xdg-open to call a script when opening URLs. The script could open a different browser based on ...
4 votes
5 answers
3k views

emacs doesnot work with xdg-open

I use emacs 24.4.1 on ubuntu 15.04. Somehow xdg-open doesnot work if i run it from emacs. For example, if i run "xdg-open 1.pdf" or "gvfs-open 1.pdf" in eshell they do not work. At the same time, "...
2 votes
1 answer
804 views

snap: xdg-open does nohing

I am running Ubuntu 20.04. I installed only ubuntu-standard without GUI and then added awesome window manager without gdm. I use only startx. Recently, I started using spapd. For instance, I have ...
2 votes
1 answer
681 views

All files open in browser

Description All files, no matter their type, and no matter what application I associate with the type, open with my default browser (Firefox), which then asks me to choose an application. This is very ...
2 votes
0 answers
281 views

Severe lag when opening "Files", xdg-open: "timeout was reached"

After a recent update "Files" either times out, or takes a significantly long time to open a file manager window. When attempting to open window via 'xdg-open .', I encounter "gio: file:...
6 votes
1 answer
3k views

Force Firefox to use xdg-open to open downloaded files

Firefox in Kubuntu is broken, as it doesn't follow the system default applications that I can configure using "file associations" in the KDE Control Module. For example, it wants to open ...
1 vote
1 answer
12k views

What is xdg-open?

I tried downloading roblox and it worked fine I double clicked it. It takes me to the website. But when I launch a game it doesn't say Open Roblox Launcher chrome just says xdg-open and nothing ...
2 votes
1 answer
351 views

How to set up `xdg-open` to use Nautilus for `gvfs` paths?

xdg-open /run/user/1000/gvfs/ftp:host=smart,port=5555,user=u runs chrome. How to make it run nautilus instead?
4 votes
2 answers
2k views

How to install latest stable dolphin file manager on Kubuntu via xdg-open(Discover)? [duplicate]

I am running latest Kubuntu 20.04 with dolphin file manager version 19.12.3. However the latest stable version is already available as 20.04.3 https://kde.org/applications/en/system/org.kde.dolphin ...
15 votes
7 answers
19k views

how to open multiple files with the default program from terminal?

I tried to open all my .mp3 files from a folder using xdg-open but I found out it opens just one! So I searched a little but there was not such a question! I found "evince" but apparently it open ...
6 votes
1 answer
18k views

xdg-open can't open applications from links

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 ...
0 votes
2 answers
2k views

xdg-open: Open various tab at the same time

I am trying to open various tab at the same time using xdg-open my default browser is firefox. The following line works (for one tab): xdg-open https://stackoverflow.com But this one does not: xdg-...
3 votes
1 answer
2k views

Protocol handler setting to automatically open protocol with xdg-open

On Ubuntu 18.04 when I clicked a Zoom link it automatically opened Zoom for me without prompt. I think that the version of Chrome that I was using on Ubuntu 18.04 had had an option in the xdg-open ...
3 votes
1 answer
2k views

Xdg-open doesn't work in Chromium

I have a fresh install of Ubuntu 20.04 LTS and I've got chromium-browser through apt(same problem persists with snap version). The problem is that xdg-open doesn't seem to do anything when called ...
2 votes
2 answers
2k views

GitKraken Snap - Sign in with Github button not working

I installed the latest GitKraken snap (4.1.1) from Ubuntu Software on a fresh Ubuntu 18.04.01. When I run it and try to sign in with Github nothing happens, after some seconds a message appears in the ...
0 votes
0 answers
194 views

xdg-open commands inheriting user directory

I've been having a fairly longstanding problem that is now preventing me from installing google-drive-ocamlfuse. When any CLI tries to run xdg-open URL it is not able to open the link in a webbrowser....