xdg-mime should use gvfs-info on gnome

Bug #376827 reported by Max Berger
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Xdg-utils
Fix Released
Medium
xdg-utils (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xdg-utils

According to the gnome release plan [1] gnome-vfs is to be replaced with gvfs, which it already is in most applications.

xdg-utils (in particular xdg-mime, possible others) still used gnomevfs-info instead of gvfs-info and should therefore be updated.

The same holds true for xdg-open (uses gnomve-open instead of gvfs-open)

[1] http://live.gnome.org/TwoPointTwentyseven

Revision history for this message
Max Berger (max-berger) wrote :

Binary package hint: xdg-utils

According to the gnome release plan [1] gnome-vfs is to be replaced with gvfs, which it already is in most applications.

xdg-utils (in particular xdg-mime, possible others) still used gnomevfs-info instead of gvfs-info and should therefore be updated.

The same holds true for xdg-open (uses gnomve-open instead of gvfs-open)

[1] http://live.gnome.org/TwoPointTwentyseven

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

A temporary workaround is to comment out the old command and use gvfs-info instead

info_gnome()
{
    file=`readlink -f "$1"` # Normalize path
    DEBUG 1 "Running gnomevfs-info \"$file\""
    #gnomevfs-info "$file" 2> /dev/null | grep MIME | cut -d ":" -f 2 | sed s/"^ "//
    gvfs-info "$file" 2> /dev/null | grep standard::content-type | cut -d ":" -f 4 | sed s/"^ "//
    if [ $? -eq 0 ]; then
        exit_success
    else
        exit_failure_operation_failed
    fi
}

Revision history for this message
Pablo Castellano (pablocastellano) wrote :

I can confirm this issue.

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Pablo Castellano (pablocastellano) wrote :

I'm rising the priority because gnome-vfs is now deprecated and this bug has not been fixed.

An ubuntu user also proposes a workaround here:
https://bugs.launchpad.net/xdg-utils/+bug/376827

So, I propose a mixture between both:

gvfs-info "$file" 2> /dev/null | grep standard::content-type |cut -d' ' -f4

Revision history for this message
Pablo Castellano (pablocastellano) wrote :
Changed in xdg-utils:
status: Unknown → In Progress
Revision history for this message
In , Pablo Castellano (pablocastellano) wrote :

PING!

Can anyone commit it, please?

Revision history for this message
In , Fathi Boudra (fboudra) wrote :

taking a look tomorrow morning.
You can expect it fixed in 12h.
thanks for your patience.

Revision history for this message
In , Fathi Boudra (fboudra) wrote :
Revision history for this message
In , Pablo Castellano (pablocastellano) wrote :

Thanks a lot, Fathi! :)

Changed in xdg-utils:
status: In Progress → Fix Released
Changed in xdg-utils:
importance: Unknown → Medium
Changed in xdg-utils:
importance: Medium → Unknown
Changed in xdg-utils:
importance: Unknown → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue has been fixed in the current version

Changed in xdg-utils (Ubuntu):
importance: Undecided → Low
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.