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
1answer
125 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 ...
0
votes
1answer
79 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
1answer
104 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
203 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 ...
5
votes
3answers
609 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 ...
4
votes
2answers
436 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
0answers
180 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 ...
2
votes
1answer
104 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
670 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
1k 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
126 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. ...
11
votes
2answers
6k 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
0
votes
1answer
1k 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. ...
8
votes
2answers
797 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
548 views

xdg open not working

I am not able to open xdg open links. I get this when I am trying on chrome and I am getting when I am trying on Mozilla
0
votes
0answers
140 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 ...
1
vote
1answer
363 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
vote
1answer
483 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
265 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
550 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
1k 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
522 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 ...
8
votes
1answer
8k 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 ...
7
votes
4answers
3k 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
610 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 ...
1
vote
1answer
192 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 ...
8
votes
1answer
21k 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
802 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 ...
2
votes
1answer
578 views

Run script instead of opening Application (xdg-mime, gvfs-mime)

following this little hack, my goal is to upload any magnet link to my "remote" Desktop PC: https://blog.flo.cx/2011/02/how-to-open-magnet-links-on-a-remote-transmission-daemon-with-one-click/ ...
1
vote
0answers
202 views

Spotify xdg-open fails, while doing the same open directly works

When I execute spotify spotify:track:7u9Vkw4xWtGNjao5uz3fJV, I can freely listen to the linked track. But doing xdg-open spotify:track:7u9Vkw4xWtGNjao5uz3fJV, I get "Link not found" error in Spotify....
2
votes
3answers
534 views

Clicking link in PDF spawns thousands xdg-open processes

I have a PDF with a link to a web page, that used to work (it would open the link in firefox, via xdg-open). However, when I click it now, literally thousands of xdg-open processes are started and ...
0
votes
1answer
8k views

(chrome) Set default handler for magnet links ? [duplicate]

When I click on a magnet link Chrome/Chromium open Transmission ... I'm would like to change this to use Tixati
1
vote
0answers
1k views

xdg-open: chrome/chromium/opera

I have written an application that makes use of the pocket API. Currently the login is done inside a custom webframe of the application itself. But I want to use the default browser for this. ...
2
votes
4answers
858 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, "...
0
votes
1answer
785 views

Chrome is not opening magnet links properly with deluge?

If I use firefox, and click a magnet link, everything runs smoothly. however, in google chrome, all I get is that the deluge icon shakes as if it is opening something, but when I look at the window I ...
3
votes
1answer
957 views

How to handle google chrome external protocol when your software is on wine?

My problem is this: I have a software installed with Wine (Brain Explorer 2, it's free); certain functions of this software requires using the browser (in this case google chrome; firefox isn't an ...
0
votes
3answers
413 views

Auto opening generated pdf file [closed]

My application generates pdf file and writes out to some folder. Is there any setup to automatically open it when its generated?
2
votes
1answer
4k 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" ...
5
votes
1answer
1k views

Force firefox to use xdg-open to open downloaded files

Firefox in Kubuntu is broken, as it don't follows the system default applications that I can configure using "file associations" in the KDE Control Module. For example, it wants to open folders with ...
3
votes
1answer
506 views

Set the terminal title in a .desktop started application

I've an application that I want to start via an entry in the upper gnome panel using a .desktop file, it has to run inside a terminal. #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=...
10
votes
1answer
7k views

xdg-open only opens a new tab in a new Chromium window despite passing it a URL

When I am using xdg-open to open a link in Chromium, it just results in a new Chromium window with only the new tab page, with nothing else. For example, xdg-open 'https://askubuntu.com' will just ...
1
vote
2answers
968 views

How to properly detach a command?

I have this little script I use to launch a root Nautilus window (yeah, dangerous, but sometimes necessary): #!/bin/bash gksudo --description "Launch a root Nautilus" -- sh -c "xdg-open / &" ...
17
votes
2answers
37k 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 ...
1
vote
0answers
63 views

Text files open in Nautilus instead of Text Editor [duplicate]

When I try to open a "plain text document" (no file extension) it opens its folder in the file manager (Nautilus), instead of opening the file in my text editor. This happens when I open it through ...
2
votes
1answer
1k views

Can't open magnet links or APT links with Chromium

Chromium browser opens a new window instead of handling magnet links or APT links. I tried to look around and found How to tell Chrome what to do with a magnet link? but it doesn’t work for me. I ran :...
3
votes
3answers
7k views

Open magnet links from Chrome into KTorrent

I'm trying to open magnet links from Chrome into KTorrent 4.3.1 on Kubuntu 13.10. The problem is that after i click the link, a new notification appears. It says "Examining magnet://..." and will run ...
3
votes
0answers
362 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....
3
votes
3answers
10k 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 ...
1
vote
1answer
852 views

Menus (eg, right-click windows) are not being drawn on the screen

The "context menus" which normally show up on right-click, as well as other pull-downs (for example evince's resize screen or any program's at-the-top menu pulldowns) are invisible. This is Ubuntu 12....
11
votes
7answers
9k 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 ...