Hi, when I run `xdg-open https://bugs.freedesktop.org/`, it will opens it in a browser, and when I run `xdg-open image.jpg`, it will opens it in a browser, I am not using any desktop environments and I have set the setting for xdg-open to open jpg images in `feh`.
Hi Ivan, Which version of xdg-utils are you using?
On Tue, Oct 06, 2015 at 08:35:17AM +0000, bugzilla-daemon@freedesktop.org wrote: >https://bugs.freedesktop.org/show_bug.cgi?id=92312 > >--- Comment #1 from Per Olofsson <pelle@debian.org> --- >Hi Ivan, > >Which version of xdg-utils are you using? 1.1.0.git20150323-1
(In reply to Ivan Tham from comment #2) > >Which version of xdg-utils are you using? > > 1.1.0.git20150323-1 Could you try running sh -x /usr/bin/xdg-open image.jpg and upload/paste the output here?
>> >Which version of xdg-utils are you using? >> >> 1.1.0.git20150323-1 > >Could you try running > > sh -x /usr/bin/xdg-open image.jpg > >and upload/paste the output here? Sorry, that works, what I mean is: xdg-open http://overthewire.org/img/domokitten.png Is that out of topic? Here is the log: http://ix.io/ldV
(In reply to Ivan Tham from comment #4) > Sorry, that works, what I mean is: > > xdg-open http://overthewire.org/img/domokitten.png > > Is that out of topic? > > Here is the log: http://ix.io/ldV Unfortunately that is difficult to accomplish within xdg-utils itself in a secure manner. Not even GNOME does it. One solution could be if you install KDE (or at least kde-runtime) and set XDG_CURRENT_SESSION=KDE. Then xdg-open will use kde-open which seems to do what you want. The following command opens the image in eog for me: XDG_CURRENT_DESKTOP=KDE xdg-open http://overthewire.org/img/domokitten.png
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.