On 2026-01-24, Tomáš Rodr <[email protected]> wrote:
> I want to be able to press enter on image files and open them in feh.
> The following two lines in lynx.cfg should be enough -
> 
> VIEWER:image/*:feh %s&:XWINDOWS
> XLOADIMAGE_COMMAND:feh "%s" &:XWINDOWS
>
> But this doesn't work and instead of opening the file, I'm instead
> prompted to D)ownload or C)ancel.
>
> I can't figure out why it doesn't work. Is it that the port just
> doesn't support this feature?

As part of hardening work, the lynx port has disabled anything
which permits executing programs directly (this was to try to
bring it more in-line with the sandboxing done in the bigger
graphical browsers).

Also see the manpage:

   -restrictions=[option][,option][,option]...
          allows a list of services to be disabled selectively.  Dashes and
          underscores in option names can be intermixed.  The following list is
          printed if no options are specified.

          On OpenBSD the following restrictions are always enabled: editor,
          exec, mail, and shell.  Additionally, bibp-urls, dired, finger,
          rlogin, and telnet  features have been disabled entirely.


-- 
Please keep replies on the mailing list.

Reply via email to