bitwiseworks / otter-browser-os2

Port of Otter Browser to OS/2
GNU General Public License v3.0
3 stars 2 forks source link

Command line switches fail silently from os2 command shells #6

Closed Greggk closed 2 years ago

Greggk commented 2 years ago

I have tried running otter-browser.exe from a 4OS2 command line with the -v --version -h --help and --new-tab URL. They all fail silently. I tried it with -h from cmd which also fails silently. otter-browser.exe URL opens the URL in a new browser window. Using Dash works to show the help.

dmik commented 2 years ago

It's actually not a bug. The Otter executable is marked as WINDOWED (PM), not VIO. It means that CMD.EXE (and I suppose 4OS2 too) will start it in a separate session w/o console attached. Hence the standard output just goes nowhere (to NUL). If you redirect the output to a file manually, e.g.

otter-browser.exe -h >output.txt

you will get what you need.

Dash works differently, it still attaches the console even to WINDOWED applications so it gets their output.

If you e.g. want to have Otter show a nice GUI window instead of sending -h -v and similar results to the standard output, please file a enhancement ticked. Closing this one.