parser
parser copied to clipboard
Use `xdg-open` instead of `open` for opening preview files
Motivation:
- When a user runs
./previewscript to preview the extraction result, the script executes theopencommand regardless of the current operating system. As a result, the command fails on Linux.
Modifications:
- Use
xdg-openinstead ofopenin Linux to open a file. - Log a message in other operating systems.
Result:
- Preview files are open automatically as expected in Linux.
Gentle ping