-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
spacemacs in wsl2 can't open links in windows browser while the default Emacs (using emacs -Q
) can
#13382
Comments
emacs -Q
) can
update the .spacemacs.env file when you install packages, will be good to remain the function of jumping to browser. |
I have the exact same problem as you and running |
@HanshenWang were you ever able to get an answer? |
Unfortunately no. I was able to set the WSL_INTEROP to the proper internal IP address and launch explorer.exe and win10 firefox through emacs ansi-term (and v term). Provided I cd into /mnt/c/Program\ Files/Mozilla\ Firefox/firefox.exe I was also able to install the wolfram engine for developers onto my wsl2 ubuntu and successfully point the emacs-jupyter package to the wolfram kernel by editing my spacemacs .env file. So I know my .env file works and that the WSL2 interop (apparently) works. I'm not a programmer and I've pretty much exhausted all my google-fu. For now, I've resigned myself to install firefox inside my wsl2 ubuntu. It really is only useful for viewing html mail inside mu4e. Let me know if you or somebody else manages to find a solution! Cheers, |
My issue (and maybe yours) is most similar to microsoft/WSL#6170 and microsoft/WSL#3806. There doesn't seem to be an easy solution as of now. |
@HanshenWang don't know if you found the solution to this, but for me this was an issue with the WSL_INTEROP environment variable. It had been set in my I found the hint through this medium article. And I believe that solution is based on the comments on this WSL issue: microsoft/WSL#5065 So I also added this to my .zshrc file
|
@enriched Thanks for the tip! I now get what the O.P. meant by updating the Mu4e users will want to redefine (defun mu4e-action-view-in-browser (msg)
(browse-url (concat "file://///wsl$/Ubuntu" (mu4e~write-body-to-html msg))))
|
here is the code I using for open links in wsl2 version of spacemacs
the code is put in the
.spacemacs
, in thedotspacemacs/user-init()
sessionand using `emacs -Q'
I think it's a problem of spacemacs config, not the X410 because the default emacs (using
emacs -Q
) simply work out,but I am not sure, the only thing I changed from the
.spacemacs
and.emacs.d
is the above codeAlso the x-server I use is the x410 downloaded from Micosoft Store
The text was updated successfully, but these errors were encountered: