Re: Funny action on "opening" a pdf document



[Theodore Kilgore, 2013-01-18]
"xdg-open opens a file or URL in the user's preferred application" 
explicitly mentioning "a file or a url" and then it says 
"If a file is provided the file will be opened in the preferred 
application for files of that type." These words would indicate that it is 
going to open a file by doing something to the file, not by doing the 
extraneous act of starting a web browser. 

do you have something like:

application/pdf;        xpdf '%s';      prioryty=1;     test=test -n "$DISPLAY"

in ~/.mailcap or /etc/mailcap? If not, can you add it to ~/.mailcap and check
xdg-open again?

You can also add to ~/.mime.types:

application/pdf         pdf

if /etc/mime.types doesn't have it.
-- 
Piotr OÅarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]