xdg-open doesn't respect gnome3 associations

Bug #1716470 reported by Николай Кузьмин
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
Fix Released
High
Unassigned

Bug Description

xdg-open internaly uses "gvfs-open --help" to check if gvfs-open is present and functional, but gvfs-open is deprecated in new gnome (3.25.90) and "gvfs-open --help" returns with error code = 1.
gvfs-open still can be used to open files and urls, new way to open associated files is "gio open ARG".

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xdg-utils 1.1.1-1ubuntu2
ProcVersionSignature: Ubuntu 4.12.0-12.13-generic 4.12.8
Uname: Linux 4.12.0-12-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Sep 11 23:59:06 2017
InstallationDate: Installed on 2017-04-10 (154 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Beta amd64 (20170408)
PackageArchitecture: all
SourcePackage: xdg-utils
UpgradeStatus: Upgraded to artful on 2017-09-10 (1 days ago)

Revision history for this message
Николай Кузьмин (nikolay-kuzmin) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Mario Abarca (knkillname) wrote :

I can reproduce this problem even from a Live Ubuntu 17.10 session.

Here's a provisional fix for this problem: force gnome-open instead of xdg-open. This also fixes issues with texdoc, google-crhome and other KDE-apps. Here are the commands I used at the Terminal:

$ mkdir --parents ~/bin
$ ln --symbolic /usr/bin/gnome-open ~/bin/xdg-open

Restart your session and you are good to go (until a real fix is issued).

Revision history for this message
Николай Кузьмин (nikolay-kuzmin) wrote :

I've investigated a bit, this is actually gvfs-open bug.
It uses '[ str1 == str2 ]' to compare strings, which is wrong. When /bin/sh is a bash it is ok, bash builtin forgives that mistake, but when /bin/sh is a symlink to a dash shell, dash's builtin '[' command fails.
Filled bug https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1720199

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue was fixed in https://git.gnome.org/browse/gvfs/commit/?h=gnome-3-26&id=ffbe2ad which is included now in the current artful version

Changed in xdg-utils (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.