Re: Launching an application from inside a PDF?



El lun, 03-11-2008 a las 19:51 -0800, Bill Harris escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I create presentations in LaTeX beamer for classes I teach, and I often
> make use of the construct
> 
> \href{run:filename.mdl}
> 
> In Adobe Reader under Windows, that would lead to the file being opened
> in Vensim, the application associated with it by virtue of the
> extension.
> 
> That doesn't work in evince (or, for that matter, in xpdf) in Linux, and
> I'd like to figure out if it's possible.

what evince version are you using? There was a problem when launching
external applications after the migration to GIO, but it was fixed in
2.24.1

http://svn.gnome.org/viewvc/evince/trunk/NEWS?revision=3225&view=markup


> I succeeded in using assogiate to give the proper MIME type to the file
> in question based on the extension, and I can open it by double-clicking
> in Nautilus or on the desktop.  (FWIW, I'm running Ubuntu 8.04LTS.)  I
> wrote a short script to open the file, because the application, Vensim,
> runs under Wine, and my script is in ~/bin, which is in my PATH.
> 
> When I try clicking on a link created by the beamer construct shown
> above in evince, nothing seems to happen.  If I hover my mouse over the
> link, it does say "Launch filename.mdl".
> 
> If I run evince filename.mdl from bash, evince opens and says "Unable to
> open document: Unhandled MIME type: "text/plain".  However, if I open
> the file's properties in Nautilus, it says it's of MIME type
> application/x-vensim (the new MIME type I created).  I did run `
> update-mime-database ~/.local/share/mime/` after running assogiate to
> update the database.
> 
> What am I missing to get evince to see the same MIME type as Nautilus
> sees?  If I succeed in persuading evince of the correct MIME type, is
> this likely to work?
> 
> Thanks,
> 
> Bill
> - -- 
> Bill Harris                      http://facilitatedsystems.com/weblog/
> Facilitated Systems                              Everett, WA 98208 USA
> http://facilitatedsystems.com/                  phone: +1 425 337-5541
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFJD8bB3J3HaQTDvd8RAjNXAJ4gT5Q7xv7aw5llvFUJUaVcS6zVAACfZi1g
> FbEM5aaSfIGL3u9XSGSMmGM=
> =chaH
> -----END PGP SIGNATURE-----
> _______________________________________________
> Evince-list mailing list
> Evince-list gnome org
> http://mail.gnome.org/mailman/listinfo/evince-list

-- 
Carlos Garcia Campos
   elkalmail yahoo es
   carlosgc gnome org
   http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



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