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
1answer
32 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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
112 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
1answer
171 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
0answers
59 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 ...
0
votes
0answers
31 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
1answer
218 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
1answer
281 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
0answers
153 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 ...
1
vote
0answers
86 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:...
2
votes
1answer
716 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-...
0
votes
1answer
1k 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
1answer
190 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?
2
votes
2answers
1k 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 ...
3
votes
1answer
743 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 ...
1
vote
2answers
857 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
1answer
1k 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
0answers
62 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
0answers
133 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
0answers
135 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 ...
10
votes
2answers
6k 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
0answers
114 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 ...
6
votes
1answer
11k 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 ...
2
votes
1answer
483 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 ...
1
vote
1answer
361 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 ...
0
votes
2answers
960 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-...
1
vote
1answer
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
3answers
2k 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 ...
5
votes
2answers
2k 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
1answer
742 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
1answer
524 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
1answer
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
2answers
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
1answer
189 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
2answers
11k 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
1
vote
1answer
3k 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
2answers
980 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.
0
votes
0answers
430 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
1answer
489 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 ...
2
votes
1answer
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 ?
1
vote
1answer
366 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?...
-2
votes
1answer
760 views

When I use the xdg-open command on a particular file it gives me > on the next line

I am opening a program with the command xdg-open file. I use this command a lot so I don't think this is a typing error. When I try to open this file it just gives me > on the next line and no ...
5
votes
1answer
2k views

How to change default program for http(s):// links in Xubuntu/XFCE

I am using XFCE on Xubuntu. I want my default browser to be Chromium. In Settings Manager > Preferred Applications web browser is set to Chromium. In gconf-editor: /desktop/gnome/url-handlers/http ...
0
votes
1answer
746 views

Open streaming video in Chrome

I am trying to stream baseball from the First Row Sports website running Chrome in Ubuntu 16.04 LTS. The URL is http://firstrowca.eu/watch/15570/1/watch-mlb-network.html. I followed a tutorial for ...
13
votes
1answer
17k views

Where to change how xdg-open opens urls? sync with kde-open?

kde-open "http://askubuntu.com/" is nice, and opens the URL in my webbrowser but xdg-open "http://askubuntu.com/" opens the link in my texteditor :-( I know where I find the file-association in ...
9
votes
4answers
5k views

xdg-open stopped working since 16.04 upgrade

xdg-mime query default inode/directory correctly gives me: nemo.desktop like I expect, and want it to. But xdg-open $HOME Gives an error: xdg-mime: mimetype argument missing Try 'xdg-mime --...
0
votes
1answer
970 views

Opening a file using xdg-open

I have a bash script which reads a file extension and list files of that extension using 'find' command. After that it reads name of the file. Now after this how can I open that file using name and ...
2
votes
1answer
280 views

xdg-email can't find thunderbird

Clicking a mailto link in chromium-browser it executes xdg-email mailto:example@example.com (or maybe without "mailto:", which seems to be the same thing). In my case this opens kmail instead of ...
12
votes
1answer
40k views

In Ubuntu, xdg-open command is not working

I'm new with Ubuntu, and I read in another thread that to open a file in the default editor (gedit for me), I need to run xdg-open, but for some reason, when I run the command xdg-open app.js I'm ...
3
votes
1answer
1k views

How to make xdg-open to use kde-open instead of gvfs-open?

I have both gnome and KDE installed in my Ubuntu, but mostly I use KDE. When I execute: xdg-open <folder_name> it runs nautilus instead of dolphin (as gvfs-open also do). It seems to me ...