Open mangkoran opened 3 years ago
Already tried this, but it still the same (need to manually open apps from Linux terminal). I guess even without this script, it should be fine?
I am assuming you have GWSL 1.3.7? This should be fixed in GWSL 1.3.8 but just in case it is not, what language/region is your pc and wsl set to?
Also, do you have the store version or github installer version of GWSL?
I reported this issue in 1.3.7, then tried the 1.3.8. Both still have the issue. I use GitHub version for both too.
And what language again? Sorry. It is an encoding issue
I guess this is what you asking? Windows
WSL
Thanks. Thinking...
Here is a test build that should solve the issue. I did not have time to wrap it in an installer but you can extract it as is and run gwsl.exe. Just testing the app-launcher would be good.
Drive is the fastest way of sharing I can think of. I will remove the link after you get it
Downloaded. Going to test it now.
Still no luck. I cannot see any logfiles created.
Logfiles will still be in appdata/roaming/gwsl
Aside from cannot launch emacs
from Shortcut Creator, the Linux Apps also displaying loading screen continuously. This is from 1.3.8 and still persist in your recently given build.
The only modified logfile is service.log.
What version and build of windows 10 do you have?
Service.log is unrelated... Wait did you edit your settings.json manually or add a profile?
Edition Windows 10 Home Version 20H2 Installed on 3/23/2021 OS build 19042.928 Experience Windows Feature Experience Pack 120.2212.551.0
And no I didn't edit anything.
And you have wsl upgraded to at least support wsl2? The machines themselves do not need to be converted to 2
Yes my Arch is on WSL2.
Turns out the dashboard.log is modified earlier.
That is helpful but these do not mention anything about the new build 5 I sent you... Can you close any previously opened gwsl and run from the new folder again?
Still no luck. The dashboard.log is not updated either.
Hmm... can you possibly delete the appdata/roaming/GWSL folder completely and then restart the machine?
Technically the error should be fixed so I have no idea what is going on
Deleted and restarted, but still cannot launch any Apps.
Any new logs now?
Only service.log.
I know you did not change it but can you post your settings.json file?
Renamed it to .txt because GitHub doesn't support JSON settings.json.txt.
Oh! I think I know what is going on. Did you allow GWSL through the firewall when it asked?
And the app launcher still finds nothing and spins? Did it in 1.3.7? Sorry I think this is a combination of issues some of which are not bugs
Yes I allowed all of them. I tried to remove and re-add the entries (pointing to GWSL_instance.exe
and GWSL_vcxsrv.exe
. And yet still can't launch app.
And the app launcher still finds nothing and spins? Did it in 1.3.7? Sorry I think this is a combination of issues some of which are not bugs
Yes, it spins the whole time. In 1.3.7 it was fine. It showed the list of the apps, but cannot launch them.
Hope we are not wasting each other's time with confusion.. This is very bizarre. Especially since dashboard.log is never updated. Can you access the path \\wsl$
in explorer?
Yes I can
Rebuilt again... https://drive.google.com/file/d/1gwgvNryQEZD7HBWwQIdEXdb6b3XWooBy/view?usp=sharing
This one will print debug info to a live window. If it crashes copy the text from the debug window and it will close automatically in 10 seconds
This is the error log.
I tinkered a bit around the error log, and found the issue. I also managed to fix the issue, which is something to do with my fish
's conf.d
. Will update you tomorrow. It's 2 a.m. here.
If you guessed it's about the terminal color, yep the issue is around that.
Sleep well!
Just woke up. I immediately test both Shortcut Creator and Linux Apps, resuming yesterday solution. Both running fine now! I will elaborate my findings.
My current setup:
ohmyfish
, nvm
, pure
(from ohmyfish
), base16-fish
Referring to the error produced earlier, I suspect it has something to do with color settings. In my .config/fish/conf.d
folder (which will be initialized every time I open a new terminal window), there is base16.fish
. It calls base16-*
function, which then set some shell variables for colors. The error message earlier indicate that some of the command in the base16-fish
function called is not executed properly, and throwing the error when I tried to open the Linux Apps menu. It's the same when I tried to call a program from Shortcut Creator, but the error from Linux Apps menu has more information about the issue.
After I disabled (commented all the lines) base16.fish
, it works normally. I am able to launch program from both Shortcut Creator and Linux Apps. I don't know what is really happening here, but it's clearly the base16-fish
that causing the error. If you need more information or wants me to do something, let me know.
Further investigation:
Testing this solution to previous build you have shared (public beta `1.3.8 build 4 and private beta 1.3.8 build 5 you shared). In build 4 the Linux Apps is showing the list of apps, so I guess it's working. But I cannot launch the app from it. In build 5, the issue is gone. So I think the problem you mentioned before (encoding) is the main issue for me.
Here is a test build that should solve the issue. I did not have time to wrap it in an installer but you can extract it as is and run gwsl.exe. Just testing the app-launcher would be good.
Drive is the fastest way of sharing I can think of. I will remove the link after you get it
By any chance can you share your fish configuration and theme? Then I can try to harden the system from more bugs related to this. But everything is working normal now without too many changes to your system?
I will share it tomorrow.
But everything is working normal now without too many changes to your system?
Yes. I think my method to change the terminal color was not typically used (because Windows Terminal theming is pain in the ass). I only use it for this WSL installation. I don't use this "change terminal color" method in my Linux because usually any terminal emulator provide a way to customize it's color.
No problem (: Thanks!
I am using ArchWSL in WSL2. Default shell is
fish
. Before using gwsl, I tried VcXsrv. I have this in myconfig.fish
:set -x DISPLAY (ip route | awk '/^default/{print $3; exit}'):0.0
and I can launch Linux GUI apps properly (e.g.emacs
). When trying gwsl, I can't launchemacs
from "Linux Apps" or "Shourcut Creator". But if I manually use "Linux Shell", and then executeemacs
, Emacs opened. Here is my logfile: dashboard.log