Questions tagged [xdgutils]

The xdg-utils package is a set of simple scripts that provide basic desktop integration functions for any Free Desktop, such as Linux. They are intended to provide a set of defacto standards.

This version of xdg-utils contains the following commands:

  • xdg-desktop-menu: command line tool for (un)installing desktop menu items
  • xdg-desktop-icon: command line tool for (un)installing icons to the desktop
  • xdg-mime: command line tool for querying information about file type handling and adding descriptions for new file types
  • xdg-icon-resource: command line tool for (un)installing icon resources
  • xdg-open: opens a file or URL in the user's preferred application
  • xdg-email: command line tool for sending mail using the user's preferred e-mail composer
  • xdg-screensaver: command line tool for controlling the screensaver
68 questions
3
votes
1 answer

Python3/Linux - Open text file in default editor and wait until done

I need to wait until the user is done editing a text file in the default graphical application (Debian and derivates). If I use xdg-open with subprocess.call (which usually waits) it will continue after opening the file in the editor. I assume…
3
votes
1 answer

Open file browser via xdg from html link

Is it possible to open a file browser via xdg/xdg-open by clicking on a HTML link? E.g.: I'd like to open my file browser (Thunar / XFCE / Xubuntu 18.04) by clicking on a link like: xdg:///media/Data/. If I enter the URL manually a xdg dialog which…
Kurztipp
  • 391
  • 2
  • 18
3
votes
1 answer

Could not find any application or handler for sslauncher:///?ssurl=url Chrome Fedora SSLauncher

I am on fedora and i have putty installed. I logged on to a site where different credentials for different servers are stored. If I go into one of the server information it shows an Icon saying PuttyLauncher if I click on it, an alert opens asking…
Ahmed Nawaz Khan
  • 1,451
  • 3
  • 20
  • 42
3
votes
2 answers

Python xdg-open()

Trying to use xdg-open in a python script xdg-open test.mp4 but get the following error: File "dl.py", line 21 xdg-open test.mp4 ^ SyntaxError: invalid syntax I can do it from command line so there is no issue with mp4
heroZero
  • 173
  • 3
  • 18
3
votes
1 answer

xdg-settings not setting default-web-browser in gentoo

I'm trying to get xdg-open to using chromium to open urls instead of firefox. I noticed that xdg-settings get default-web-browser returns chromium.desktop when it should be chromium-browser-chromium.desktop. Following the instructions here I tried…
Mark Wolfman
  • 163
  • 1
  • 8
2
votes
1 answer

Calibre web error FileNotFoundError: [Errno 2] No such file or directory: 'xdg-icon-resource' in Docker

Host os: Ubuntu 22.04 device Hewlett Packard Enterprise ProLiant ML350p Gen8 When starting up calibre web it gives me this error: Setting up libedit2:amd64 (3.1-20210910-1build1) ... Setting up libsensors-config (1:3.6.0-7ubuntu1) ... Setting up…
Lucas
  • 21
  • 4
2
votes
1 answer

protonvpn RuntimeError: Couldn't find acceptable executables for {'xdg-open'}

In short, whenever I try to run from the command line protonvpn-cli or protonvpn-gui, I get similar errors: RuntimeError: Couldn't find acceptable executables for {'xdg-open'}. A couple of minor differences: 1) For protonvpn-cli I get the error…
2
votes
1 answer

xdg-open not opening an bluejeans

I'm trying to open BlueJean after a link in my browser. I get prompted if I wanted to let xdg-open open an application for the url, I agree and click the button. However, the right app is not opened and a default app opens up doing nothing.…
sevillo
  • 175
  • 2
  • 10
2
votes
2 answers

Open pdf file created in a docker container(Alpine)

I am trying to open pdf file that I created inside a Docker container. I tried using xdg-open and Firefox but I'm getting the following errors: www-browser: not found links2: not found elinks: not found links: not found lynx: not found w3m:…
rock11
  • 718
  • 4
  • 17
  • 34
2
votes
0 answers

How to associate a filetype to a desktop entry correctly

I'm try to associate my custom filetype with my app, which is an electron appimage. My filetype seems to be correctly registered, xdg-mime seems good, but xdg-open doesn't know how to open it. I've created an MyApp-MyFile.xml, installed by doing:…
2
votes
2 answers

Towards understanding availability of xdg-open

I want to open an image, and in Windows I do: #include .. ShellExecute(NULL, "open", "https://gsamaras.files.wordpress.com/2018/11/chronosgod.png", NULL, NULL, SW_SHOWNORMAL); I would like to use a Linux approach, where it's so much…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
2
votes
1 answer

Register a filetype association with xdg-mime under Linux

I'm trying to get xdg-open to run mplayer to open WMV files. The manual says to register the filetype with xdg-mime to a mime type, then to register a .desktop file to open the mime type. I don't succeed to register the filetype: cam@x ~ $ file…
2
votes
1 answer

Java Runtime exec() not working

I try to execute a shell command via java like this if (Program.isPlatformLinux()) { exec = "/bin/bash -c xdg-open \"" + file.getAbsolutePath() + "\""; exec2 = "xdg-open \"" + file.getAbsolutePath() + "\""; …
zimmerrol
  • 4,872
  • 3
  • 22
  • 41
2
votes
1 answer

Where do I find the “libgconf-2.so.4()(64bit)” and “xdg-utils” dependneices on Amazon Linux?

I’m using Amazon Linux (cannot change this distro at this time) and trying to install Google Chrome (for purposes of running a Selenium server in headless mode) on our EC2 box. I am getting the below errors. Does anyone know where I can find the…
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
1 answer

virt-viewer XDG_RUNTIME_DIR

Good day, I am attempting to spin up a VM using KVM by using an image I have been provided with. I am able to successfully create the VM but the proble is that I am unable to access its console. I connected remotely to my server (ubuntu 14.04) using…