On Wed, 2007-08-22 at 16:27 +0200, Martintxo wrote: > I was testing the print-preview feature in Sylpheed 2.4.4 on testing. I see > that when I press the preview button, nothing happens, but in a xterm I can > see that the system try to starts "evince". > > I don't have evince installed, neither any gnome library. I see that in the > experimentall branch there are a evince-gtk package that doesn't needs gnome, > but I don't need to install it, I have xpdf for view pdf files. > > So I googled a bit, and find at: > http://library.gnome.org/devel/gtk/unstable/GtkSettings.html#GtkSettings--gtk-print-preview-command, > that the config for this setting is "gtk-print-preview-command", so I put in > ~/.gtkrc-2.0 the following: > gtk-print-preview-command="xpdf -q %f" > and now I can see the sylpheed print-preview in xpdf. > > So, I think that we can put a short of fallback command for view the previews > in gtk. It can be a list of possible commands, and the fallback one be xpdf > or gv, for example.
Another possibility would be to use the alternatives system and add a x-pdf-viewer (or something like that), or a wrapper script to launch the users preferred viewer (or a fallback command). -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID 760BDD22
signature.asc
Description: This is a digitally signed message part

