Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Configure external image viewer?
@ 2009-04-27 16:22 Teemu Likonen
  2009-04-27 17:10 ` Tim Landscheidt
       [not found] ` <mailman.6116.1240853417.31690.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-04-27 16:22 UTC (permalink / raw)
  To: info-gnus-english

Is it possible to configure what image viewer Gnus will use for viewing
attached images?

I'm using Debian GNU/Linux and currently Gnus opens ImageMagick program
when I click those attachment buttons:

    [2. image/jpeg; file.jpg]

ImageMagick opens but it does not actually show the image. Even if it
did work I'd prefer some other viewer like Gwenview of "kfmclient exec".
I tried to edit my ~/.mailcap file and added the following line to the
file. It didn't have any effect.

    image/*; gwenview '%s'; test=test "$DISPLAY"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
  2009-04-27 16:22 Configure external image viewer? Teemu Likonen
@ 2009-04-27 17:10 ` Tim Landscheidt
       [not found] ` <mailman.6116.1240853417.31690.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Tim Landscheidt @ 2009-04-27 17:10 UTC (permalink / raw)
  To: info-gnus-english

Teemu Likonen <tlikonen@iki.fi> wrote:

> [...]
> ImageMagick opens but it does not actually show the image. Even if it
> did work I'd prefer some other viewer like Gwenview of "kfmclient exec".
> I tried to edit my ~/.mailcap file and added the following line to the
> file. It didn't have any effect.

>     image/*; gwenview '%s'; test=test "$DISPLAY"

Try it with just:

| image/*; /usr/bin/gwenview %s

This works for me.

Tim

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
       [not found] ` <mailman.6116.1240853417.31690.info-gnus-english@gnu.org>
@ 2009-04-27 17:42   ` Teemu Likonen
  2009-04-27 18:56     ` thierry.volpiatto
  2009-04-29 10:11     ` Tim Landscheidt
  0 siblings, 2 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-04-27 17:42 UTC (permalink / raw)
  To: info-gnus-english

On 2009-04-27 17:10 (UTC), Tim Landscheidt wrote:

> Teemu Likonen <tlikonen@iki.fi> wrote:
>> I tried to edit my ~/.mailcap file and added the following line to
>> the file. It didn't have any effect.
>
>>     image/*; gwenview '%s'; test=test "$DISPLAY"
>
> Try it with just:
>
> | image/*; /usr/bin/gwenview %s

Does not help. If "imagemagick" package is installed in my Debian system
then ImageMagick is opened (but not the image). If the package is not
installed nothing seems to happen. In both cases the *Messages* buffer
prints this:

    Viewing with display 'jpeg:%s'
    Displaying display 'jpeg:/tmp/emm.3264rZC/file.jpg'...done

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
  2009-04-27 17:42   ` Teemu Likonen
@ 2009-04-27 18:56     ` thierry.volpiatto
  2009-04-27 19:12       ` thierry.volpiatto
  2009-04-29 10:11     ` Tim Landscheidt
  1 sibling, 1 reply; 7+ messages in thread
From: thierry.volpiatto @ 2009-04-27 18:56 UTC (permalink / raw)
  To: info-gnus-english

Hi,
Teemu Likonen <tlikonen@iki.fi> writes:

> On 2009-04-27 17:10 (UTC), Tim Landscheidt wrote:
>
>> Teemu Likonen <tlikonen@iki.fi> wrote:
>>> I tried to edit my ~/.mailcap file and added the following line to
>>> the file. It didn't have any effect.
>>
>>>     image/*; gwenview '%s'; test=test "$DISPLAY"
>>
>> Try it with just:
>>
>> | image/*; /usr/bin/gwenview %s
>
> Does not help. If "imagemagick" package is installed in my Debian system
> then ImageMagick is opened (but not the image). If the package is not
> installed nothing seems to happen. In both cases the *Messages* buffer
> prints this:
>
>     Viewing with display 'jpeg:%s'
>     Displaying display 'jpeg:/tmp/emm.3264rZC/file.jpg'...done
Do you have the metamail package installed?
If so, you can have this entry in .mailcap:

image/jpeg; showpicture -viewer display %s

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
  2009-04-27 18:56     ` thierry.volpiatto
@ 2009-04-27 19:12       ` thierry.volpiatto
  0 siblings, 0 replies; 7+ messages in thread
From: thierry.volpiatto @ 2009-04-27 19:12 UTC (permalink / raw)
  To: info-gnus-english

thierry.volpiatto@gmail.com writes:

> Hi,
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> On 2009-04-27 17:10 (UTC), Tim Landscheidt wrote:
>>
>>> Teemu Likonen <tlikonen@iki.fi> wrote:
>>>> I tried to edit my ~/.mailcap file and added the following line to
>>>> the file. It didn't have any effect.
>>>
>>>>     image/*; gwenview '%s'; test=test "$DISPLAY"
>>>
>>> Try it with just:
>>>
>>> | image/*; /usr/bin/gwenview %s
>>
>> Does not help. If "imagemagick" package is installed in my Debian system
>> then ImageMagick is opened (but not the image). If the package is not
>> installed nothing seems to happen. In both cases the *Messages* buffer
>> prints this:
>>
>>     Viewing with display 'jpeg:%s'
>>     Displaying display 'jpeg:/tmp/emm.3264rZC/file.jpg'...done
> Do you have the metamail package installed?
> If so, you can have this entry in .mailcap:
>
> image/jpeg; showpicture -viewer display %s

Another thing, the image/* ... entry have to be after the other image
entries (e.g image/jpg, image/jpeg, etc...)

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
  2009-04-27 17:42   ` Teemu Likonen
  2009-04-27 18:56     ` thierry.volpiatto
@ 2009-04-29 10:11     ` Tim Landscheidt
  1 sibling, 0 replies; 7+ messages in thread
From: Tim Landscheidt @ 2009-04-29 10:11 UTC (permalink / raw)
  To: info-gnus-english

Teemu Likonen <tlikonen@iki.fi> wrote:

>>> I tried to edit my ~/.mailcap file and added the following line to
>>> the file. It didn't have any effect.

>>>     image/*; gwenview '%s'; test=test "$DISPLAY"

>> Try it with just:

>> | image/*; /usr/bin/gwenview %s

> Does not help. If "imagemagick" package is installed in my Debian system
> then ImageMagick is opened (but not the image). If the package is not
> installed nothing seems to happen. In both cases the *Messages* buffer
> prints this:

>     Viewing with display 'jpeg:%s'
>     Displaying display 'jpeg:/tmp/emm.3264rZC/file.jpg'...done

Please post your complete ~/.mailcap for analysis.

Tim

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Configure external image viewer?
       [not found] <87preyhxrp.fsf@iki.fi>
@ 2009-04-27 18:18 ` Teemu Likonen
  0 siblings, 0 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-04-27 18:18 UTC (permalink / raw)
  To: info-gnus-english

On 2009-04-27 16:22 (UTC), Teemu Likonen wrote:

> I tried to edit my ~/.mailcap file and added the following line to the
> file. It didn't have any effect.
>
>     image/*; gwenview '%s'; test=test "$DISPLAY"

I noticed something. I had to be more explicit about the mimetypes in
~/.mailcap file: "image/jpeg" works but "image/*" does not. Also, I had
to restart Emacs for any changes in ~/.mailcap to take effect. Quite
strange but it's working now. The problem solved. :-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-29 10:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-27 16:22 Configure external image viewer? Teemu Likonen
2009-04-27 17:10 ` Tim Landscheidt
     [not found] ` <mailman.6116.1240853417.31690.info-gnus-english@gnu.org>
2009-04-27 17:42   ` Teemu Likonen
2009-04-27 18:56     ` thierry.volpiatto
2009-04-27 19:12       ` thierry.volpiatto
2009-04-29 10:11     ` Tim Landscheidt
     [not found] <87preyhxrp.fsf@iki.fi>
2009-04-27 18:18 ` Teemu Likonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).