Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20741 - [xdg-utils] missing dependency to a desktop file opener

Attached to Project: Arch Linux
Opened by Jocelyn Delalande (JocelynDelalande) - Saturday, 04 September 2010, 21:51 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 19 June 2011, 05:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
xdg-open tool of xdg-utils is totaly useless without one of these tools : * kfmclient (extra/kdebase-konqueror)
* kde-open (extra/kdebase-runtime)
* gnome-open (extra/libgnome)
* gvfs-open (extra/gvfs)
* mimeopen (perl-file-mimeinfo)

(see /usr/bin/xdg-open code).

Without one of these, it will keep on opening the default web browser for any kind of filetype.

This issue is a known one, see https://bugzilla.redhat.com/show_bug.cgi?id=580835 or https://bbs.archlinux.org/viewtopic.php?id=93956

So I suggest creating adding a "provides" on the above packages bellow like provides('xdg-open-backend') and a dependency on that in the xdg-utils tool.

What do you think about that ?

Regards,

Jocelyn

Additional info:
* package version(s) : extra/xdg-utils 1.0.2.20100618-1

Steps to reproduce:
1) Install xdg-utils but none of the packages mentioned.
2) xdg-open /path/to/a/pic.jpg
It will launch your web browser instead of your pic viewer.
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 19 June 2011, 05:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  optdepends were added in xdg-utils-1.1.0rc1-3
Comment by Ionut Biru (wonder) - Saturday, 04 September 2010, 22:13 GMT
i'm sorry but adding that provides doesn't solve anything.

pacman will install a provider in alphabetical order if is not already install and we will get bug reports about useless dependency.

maybe optional dependencies?
Comment by Jocelyn Delalande (JocelynDelalande) - Saturday, 04 September 2010, 22:28 GMT
Too bad pacman don't let the choice of which "provider" to install or to specify (in PKGBUILD) which is the default.

Well, you're right, I think optional dependencies would be better than nothing.
Comment by Gaetan Bisson (vesath) - Sunday, 05 September 2010, 07:42 GMT
I also believe optdepends is the way to go since many people use qt (which requires xdg-utils) but don't want to install a full-featured desktop environment (perl-file-mimeinfo is light enough, but still).
Comment by roko (roko) - Saturday, 18 June 2011, 17:41 GMT
Yes, the optdepends is reasonable solution. And I've done the patch.

Loading...