Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use xdg-open instead of open for opening preview files #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trustin
Copy link

@trustin trustin commented Feb 6, 2023

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.

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
Copy link
Author

trustin commented Feb 20, 2023

Gentle ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant