Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Conversation

@Jinivus
Copy link
Contributor

@Jinivus Jinivus commented Jan 15, 2019

Identify the Bug

#18702

Description of the Change

Change windows atom.sh launcher to:

  • Not replace "//" with "" when building the ATOMCMD when detected in WSL
  • Change to launch ATOMCMD in a similar fashion to Msys

Alternate Designs

Could potentially format the path in a way that was friendly for the original Cygwin launch method

Possible Drawbacks

Potentially breaks on previous builds of Windows, although I don't have the facilities to test

Verification Process

Repeated the steps outlined in the linked issue and atom launched as expected.

Release Notes

  • Fixed an issue where the windows version of atom would not launch from inside WSL

eval $(grep "^root" /etc/wsl.conf | sed -e "s/ //g")
root="$(echo $root | sed 's|/|\\/|g')"
ATOMCMD="$(echo $PWD | sed 's/\/mnt\/\([a-z]*\)\(.*\)/\1:\2/')/atom.cmd"
ATOMCMD="${ATOMCMD////\\}"
Copy link

@solvaholic solvaholic May 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not replace "//" with "" when building the ATOMCMD when detected in WSL

In bash, this 👇 pattern substitution changes all the / in ATOMCMD into \:

ATOMCMD="${ATOMCMD////\\}"

@sadick254 sadick254 merged commit db3830a into atom:master Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants