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
1 vote
2 answers
48 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 ...
stackbiz's user avatar
  • 267
1 vote
1 answer
96 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 ...
SO_32's user avatar
  • 153
0 votes
0 answers
99 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-...
armando.sano's user avatar
1 vote
0 answers
182 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....
anshah's user avatar
  • 21
0 votes
0 answers
192 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 ...
ramzataz's user avatar
1 vote
1 answer
470 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 <...
Vipul Gupta's user avatar
1 vote
1 answer
96 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. ...
Vipul Gupta's user avatar
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 ...
Daria's user avatar
  • 375
6 votes
3 answers
910 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)....
Hussain's user avatar
  • 63
0 votes
0 answers
106 views

xdg-open starts Chrome instead of Firefox for local html files

On Ubuntu 22.04 I was calling xdg-open file.html, and Chrome was started instead of Firefox, and I tried to figure out why, so I found: xdg-mime query filetype file.html -> application/xhtml+xml ...
mtotschnig's user avatar
1 vote
1 answer
449 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 ...
red_trumpet's user avatar
  • 1,849
2 votes
1 answer
447 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 ...
madzohan's user avatar
  • 257
4 votes
1 answer
873 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-...
Mark Reed's user avatar
  • 211
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 ...
barrypicker's user avatar
  • 1,213
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 ...
Jake B.'s user avatar
  • 281
0 votes
1 answer
279 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 ...
dzang's user avatar
  • 161
1 vote
1 answer
480 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 ...
Paul's user avatar
  • 222
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 ...
Daniel Doherty's user avatar
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 ...
chronos00's user avatar
  • 691
1 vote
1 answer
127 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 ...
emilBeBri's user avatar
  • 224
0 votes
1 answer
1k 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 ...
FedKad's user avatar
  • 10.3k
0 votes
0 answers
246 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 ...
TheDiveO's user avatar
  • 351
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/...
lacostenycoder's user avatar
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 ...
Archisman Panigrahi's user avatar
1 vote
0 answers
430 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 ...
Matt Miller's user avatar
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 ...
robertspierre's user avatar
2 votes
1 answer
795 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 ...
Markus Lohmayer's user avatar
2 votes
1 answer
664 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 ...
IanS's user avatar
  • 61
2 votes
0 answers
531 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 ...
alexwh's user avatar
  • 113
2 votes
0 answers
275 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:...
rukhin's user avatar
  • 21
3 votes
2 answers
5k 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-...
Akash Karnatak's user avatar
1 vote
1 answer
11k 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 ...
Ib Goes REEE's user avatar
2 votes
1 answer
341 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?
whyer's user avatar
  • 509
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 ...
hsinam's user avatar
  • 89
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 ...
Guy's user avatar
  • 144
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 ...
Mykola Kovalov's user avatar
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 ...
nikandev's user avatar
0 votes
0 answers
193 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....
Daniel Rosehill's user avatar
1 vote
0 answers
158 views

16.04 problem uploading with Chrome, Ixdg-open open? doesn´t work

My Ubuntu 16.04 system can't upload from Chrome. It says: Please click Open xdg-open if you see the system dialog. If nothing prompts from browser, click here to launch the meeting, or download &...
Irene Fiedler's user avatar
0 votes
0 answers
340 views

xdg-open command in terminal

when i use xdg-open with http it works fine But when i try opening it with https it says this Secure Connection Failed An error occurred during a connection to 10.0.2.15:22533. SSL received a ...
yatharth mheshwari's user avatar
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'...
Dinis Rodrigues's user avatar
2 votes
0 answers
234 views

Purge default-web-browser from xdg-settings

Is it possible to purge default-web-browser entry from xdg-settings for specific user? I.e. that if xdg-open with an url is called an error will be thrown instead of opening the url in the default ...
smihael's user avatar
  • 216
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 ...
ste's user avatar
  • 161
2 votes
1 answer
1k views

How to open file browser with a specific file selected by default?

Let's assume a situation where I have a terminal emulator open on my GUI and I have changed my working directory to some specific directory. I know that current directory contains file xyz. Is it ...
Mikko Rantalainen's user avatar
8 votes
1 answer
1k views

how to get links from chrome to open in firefox?

Firefox is my default browser but I have to run Chrome to be able to use PWAs (progressive web apps). when I click links in the PWA they always open a Chrome window. I've been playing with appending ...
kinghat's user avatar
  • 183
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-...
Ced's user avatar
  • 813
1 vote
1 answer
2k views

Any file download in Chrome keeps popping up Open xdg-open?

Recently I have installed Ubuntu 19.04 and all common required applications. However, in Chrome when I try to download a file (of any file extension), Chrome keeps popping up a message with text Open ...
Jaber Al Nahian's user avatar
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 ...
peter's user avatar
  • 203
5 votes
2 answers
3k views

Trying to install a sw xdg-open: gnome-open: not found

I am trying to install this program and it gives me this error.
Adriana Quintella Lobão's user avatar
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 ...
hllktlhndd's user avatar