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
31 votes
5 answers
92k 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 ...
Dima's user avatar
  • 9,857
39 votes
3 answers
55k views

How do I set a new xdg-open setting?

I want to use xdg-open to open irc:// links, how can I make the required parameter?
Oxwivi's user avatar
  • 17.9k
10 votes
5 answers
2k views

Files lens and xdg-open only open nautilus but not the correct applicatiion

since some days my Files lens opens only nautilus but not the correct application which is associated with the file extension. For example, if I choose a PDF file, Nautilus is openend, pointing to ...
che---'s user avatar
  • 153
5 votes
2 answers
48k views

Open file from terminal in specific application

I use xdg-open a lot in the terminal; this opens a file in the default application. However, sometimes I'd like to open a file in a different (non-default) application. Is there a way to achieve this ...
Sparhawk's user avatar
  • 6,949
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
7 votes
1 answer
3k 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 ...
Selivanov Pavel's user avatar
4 votes
1 answer
3k views

How can I open irc:// links in Pidgin from Chromium?

I want to open irc:// links in pidgin from chromium. When i am logged-in to a irc server(irc.freenode.net) running purple-url-handler irc://irc.freenode.net/#ubuntu in terminal works fine. But when ...
Khurshid Alam's user avatar
1 vote
1 answer
350 views

How to set image open-with via terminal?

I am running openbox and so do not have access to standard Ubuntu control panel, but must set everything from the terminal. When I download an image in chrome and click open, it launches xdg-open ...
user1122069's user avatar
22 votes
2 answers
46k views

How to reset external protocol handler in Chrome?

A while back I selected "Do nothing" when Chrome asked me how to handle a specific url. Now I want Chrome to launch xdg-open, which again can launch the correct application, but I can't figure out how ...
Emil Lunde's user avatar
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 ...
karo's user avatar
  • 147
13 votes
1 answer
24k 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 ...
Puggan Se's user avatar
  • 948
12 votes
2 answers
14k 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
Willi W's user avatar
  • 167
11 votes
1 answer
8k views

How to change file association for files opened in Dolphin from command line in GNOME?

I would like to change several default applications for files opened in Dolphin. I know I could do it manually with kcmshell4 filetypes, keditfiletype or however else but is there a way how to change ...
user77896's user avatar
  • 221
9 votes
4 answers
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 --...
beauxq's user avatar
  • 211
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-...
Akash Karnatak's user avatar
3 votes
3 answers
13k views

How can I start Nautilus on Xubuntu / XFCE via the shortcuts in the XFCE panels?

I am on Xubuntu 13.10 and just installed and activated Nautilus as the default file manager. I'd like to use the current default file manager (whichever that might be) when I click on my panel ...
henry's user avatar
  • 2,065
3 votes
0 answers
407 views

Why does Synapse use Nautilus for all file types instead of the default application?

No matter which file I find via Synapse, it just gets opened in Nautilus. May that be because I recently put Nautilus as my default file manager? Can I change that behavior to the normal action, i.e....
henry's user avatar
  • 2,065