microsoft / microsoft/WSL

Introduce commands / binaries: open and xdg-open

Open
#8,795 2 comments 2 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

This will help to open files in default Windows apps for that file extension. Similar commands exist in Mac (open.exe) and in Ubuntu (xdg-open.exe) and are useful to open files in OS's default image viewers or pdf viewers

It can probably be achieved by `alias open="cmd.exe /c"`, but it would be nice if a recommended/tested way existed

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by locating how WSL exposes commands and how `cmd.exe /c` is invoked. Compare the requested `open` and `xdg-open` behavior with the proposed alias. Done means a tested, recommended way to open files with the default Windows application for their extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, ubuntu
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.