[Portland] XDG-Open

Arnout Engelen portland at bzzt.net
Sat Sep 17 02:22:39 PDT 2011


On Sat, Sep 17, 2011 at 02:06:08PM +0530, Hardik Soni-Ennovate wrote:
> i am facing a starge issues withe the xdg-open when ever i tried to open the
> .pdf file as the root user, 

The manpage does say 'It is not recommended to use xdg-open as root.' - though
that is probably mostly a security thing rather than a usability thing.

> it always opens in the Firefox rather than the Documnet viewer and on my 
> another machine it opens up in the GIMP iamge viewer. 

To debug this it'll be useful to know which backend DE xdg-open has selected.
Have you modified shell scripts before? Add 'DEBUG 2 "Detected DE $DE";' in 
the proper place in xdg-open and run it as:

  XDG_UTILS_DEBUG_LEVEL=7 xdg-open foo

I submitted a (trivial) patch to add this particular debugging statement to 
xdg-open, see https://bugs.freedesktop.org/show_bug.cgi?id=40959 .


Kind regards,

Arnout


More information about the Portland mailing list