parser icon indicating copy to clipboard operation
parser copied to clipboard

Use `xdg-open` instead of `open` for opening preview files

Open trustin opened this issue 2 years ago • 1 comments

Motivation:

  • When a user runs ./preview script to preview the extraction result, the script executes the open command regardless of the current operating system. As a result, the command fails on Linux.

Modifications:

  • Use xdg-open instead of open in Linux to open a file.
  • Log a message in other operating systems.

Result:

  • Preview files are open automatically as expected in Linux.

trustin avatar Feb 06 '23 13:02 trustin

Gentle ping

trustin avatar Feb 20 '23 11:02 trustin