Re: lynx.cfg - mime types - viewer for text terminal audio player mpg123

Klaus-Peter Wegge <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
It's in the PATH and full path spec doesn't make a difference.
But the change in .mailcap is a work arround.
audio/mpeg; mpg123 -v %s

The VIEWER definition seems to check for the
DISPLAY env. It's set to DISPLAY=0
May be there is something wrong with the VIEWER defintion.

Thanks, Klaus




On Sun, 31 Mar 2024, Stef Caunter wrote:

> sounds like ubuntu can't find your player in $PATH so it falls back to vlc
>
> have you tried a full path to the player in your lynx.cfg on ubuntu?
>
>
> On Sun, Mar 31, 2024, 14:24 Klaus-Peter Wegge <[email protected]> wrote:
>
>> Hi,
>>
>> indeed, an entry in $HOME/.mailcap helps:
>> audio/mpeg; mpg123 -v %s
>>
>> But this definition is not restricted to lynx only.
>>
>> At least the text in .lynx.cfg is not correct:
>> # The suffix definitions listed here in the default lynx.cfg file are
>> # among those established via src/HTInit.c.  You can change any of the
>> # defaults by editing that file, or via the global or personal mime.types
>> # files at run time.  They will be overridden if you assign them here.
>> #
>> SUFFIX:.mp3:audio/mpeg
>> VIEWER:audio/mpeg:mpg123 -v %s
>>
>> ---
>>
>> The definition in .lynx.cfg seems to be ignored. It doesn't overwrite
>> others as described in the comment.
>> May be a hint to $HOME/.mailcap can be also added in .lynx.cfg.
>>
>> Many thanks
>>
>> Klaus
>>
>>
>> On Sun, 31 Mar 2024, Rudy Vener wrote:
>>
>>> Check your $HOME/.mailcap file.
>>>
>>> Rudy
>>>
>>> On Sun, Mar 31, 2024 at 05:33:48PM +0200, Klaus-Peter Wegge wrote:
>>>> Dear lynx experts,
>>>>
>>>> I want to play mp3 files with the external text terminal player mpg123.
>>>> This does no longer wirk with my change from Debian to Ubuntu.
>>>>
>>>> I'm using:
>>>> lynx 2.9.0dev.10 - Ubuntu 22.04.3 LTS
>>>>
>>>> Extract from .lynx.cfg:
>>>> # MIME types and viewers!
>>>> #
>>>> SUFFIX:.mp3:audio/mpeg
>>>> VIEWER:audio/mpeg:mpg123 -v %s
>>>> ---
>>>>
>>>> Problem: vlc is started instead of mpg123.
>>>> It seems that the mime type definition in .lynx.cfg is ignored or
>>>> overwritten. Adding :NON_XWINDOWS or :XWINDOWS at the end of the
>>>> viewer definition has no effect.
>>>> In best case I'd like to start mpg123 independed from the setting of the
>>>> display environment variable.
>>>>
>>>> I found some discussion on this issue in the lynx-dev mailing list
>> archive
>>>> end 2018 but no solutiton.
>>>>
>>>> Any hint is very welcome
>>>>
>>>> Best, Klaus
>>>
>>> --
>>> Rudy Vener
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.