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
2 votes
1 answer
37 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 ...
  • 215
4 votes
1 answer
407 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-...
  • 201
2 votes
0 answers
948 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 ...
  • 1,173
0 votes
1 answer
976 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 ...
  • 271
0 votes
1 answer
126 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 ...
  • 131
1 vote
1 answer
205 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 ...
  • 222
3 votes
1 answer
527 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
2 answers
2k 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 ...
  • 601
1 vote
1 answer
93 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 ...
  • 214
0 votes
1 answer
648 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 ...
  • 7,670
0 votes
0 answers
160 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 ...
  • 351
0 votes
1 answer
1k 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/...
2 votes
2 answers
1k 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 ...
1 vote
0 answers
298 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 ...
2 votes
0 answers
686 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
1 answer
624 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
462 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 ...
  • 51
2 votes
0 answers
342 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 ...
  • 113
1 vote
0 answers
191 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:...
  • 11
2 votes
1 answer
3k 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-...
1 vote
1 answer
5k 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
276 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?
  • 479
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 ...
  • 89
3 votes
1 answer
1k 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 ...
  • 142
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 ...
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 ...
0 votes
0 answers
139 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....
1 vote
0 answers
150 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 &...
0 votes
0 answers
310 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 ...
11 votes
2 answers
9k 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'...
2 votes
0 answers
205 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 ...
  • 206
6 votes
1 answer
15k 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 ...
  • 161
2 votes
1 answer
826 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 ...
4 votes
1 answer
805 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 ...
  • 143
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-...
  • 763
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 ...
9 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 ...
  • 193
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.
1 vote
1 answer
1k 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 ...
3 votes
1 answer
663 views

reveal file in default file manager with command line

I would like to open folder in default file manager an focus on specific file. I can do it with Notilus or Nemo (for example) notilus ~/folder/file.txt nemo ~/folder/file.txt but I want to use ...
4 votes
1 answer
2k views

How do I close a pdf from Ubuntu command line?

Suppose I open a file (pdf) with a command line in Ubuntu by running xdg-open abc.pdf The pdf is shown in a pdf reader which is set as default. Now how can I close this pdf viewer from the command ...
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 ...
3 votes
1 answer
253 views

Is there a way to extend xdg-open?

I hope the title is not misleading. I am using an note taking app that let's me open files from markdown notes: [read more](/path/to/file.pdf) I couldn't find a way to open it at a specific page. ...
12 votes
2 answers
12k views

What do these symbols "$@">/dev/null 2>&1" after a command mean? [duplicate]

I've recently found here a solution to my problem, but I can't completely understand what everything in this command means: xdg-open "$@">/dev/null 2>&1
  • 167
1 vote
1 answer
4k views

Open file with any application using xdg-open

How to open files without default application using xdg-open file_name? xdg-open file_name opens the file in default application. To play video files, it always opens with vlc which is set to default. ...
7 votes
2 answers
1k views

How to locate and display a file

I want to locate and display an image. Is there any way to do so using pipe or ...? I wanna locate image X, i do locate X and the path is shown, but i can't send the output to xdg-open.
user avatar
0 votes
0 answers
490 views

Can I meddle with xdg-setting to open a popup asking me with which browser to open a link I just clicked?

I work on multiple browsers simultaneously. I wish that every time I open a link from outside a browser( let's say from a pfd) a window or a terminal pops up to ask me which browser to use. Is there ...
2 votes
1 answer
599 views

Need an xdg-open tweak

I know that by running watch -n 10 xdg-open https://duckduckgo.com in the terminal, will open the specified site in a preferred browser at each 10 seconds. I am looking for a tweak which will close ...
  • 1,015
3 votes
1 answer
1k 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 ?
  • 143
1 vote
1 answer
444 views

`xdg-open .` opens file manager, but opens Audacious with sudo permissions

xdg-open . opens file manager, but opens Audacious with root permissions. It then proceeds to play all system sounds! I'm just trying to open the file manager with sudo. Is there a better way to do it?...
  • 85