-
Notifications
You must be signed in to change notification settings - Fork 71
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
Not doing anything on WSL 2 with burnt toast installed #85
Comments
Does it still do nothing if you minimise the window while it's sleeping? |
Yes, it does. I'm using the new windows terminal, if that matters at all. |
I just also tested it in the ubuntu app and it also doesn't work, so it shouldn't be an emulator issue |
There were recent changes made regarding WSL, to rule those out perhaps try an older release such as https://github.com/franciscolourenco/done/releases/tag/1.14.5 and see if it still reproduces? |
I just tried the old version, it does the same thing. |
Is the issue perhaps that done needs to be running a custom command? I do not have one set at the moment. |
For troubleshooting you could try setting a custom command to see if it even tries to run it or not. I don't have access to WSL2 so can't try it myself. Can you see if it works on WSL1? |
Okay, so I just tried the normal command in WSL 1 by cloning a large git repo (sleep doesn't work in wsl 1 apparently) and it still did not work. I'll try a couple custom commands tomorrow morning. |
The issue for me was this chunk of code |
There's an active issue on the WSL issue tracker about detection but I can't find it at the moment. |
Does this improve detection for custom kernels? https://stackoverflow.com/a/43618657 |
Here's fork with a quick fix https://github.com/archilkarchava/done, custom kernel detection is not supported. |
Found the thread: microsoft/WSL#423 |
I did a simple fix for that in #88, but a better way may be to rely on WSL specific variables being set (for instance,
|
@noahgaertner can you check if this is fixed in v1.14.10? |
@noahgaertner ping |
My laptop is currently with {manufacturer} to get fixed, I'll take a look at this when I get it back. |
@franciscolourenco i'm using ubuntu on wsl2 and nothing seems to happen to me too.
launching I'll be happy to provide more info since this plugin was really part of my workflow on linux (and thanks btw!) 😁 |
hah, I may have found my issue. I have a X org server running (VcXsrv) so that I can use xorg apps in windows, and the problem seems to be here: Lines 84 to 85 in 8fd2bc5
that returns true .
Swapping this Line 89 in 8fd2bc5
|
WSL systems might have Linux desktop utililies like |
I am also having problems to get a notification from WSL. Even though the |
When I run sleep 6 like in the readme.md, no burnt toast output is displayed. Burnt toast does work when the New-BurntToastNotification command is run in both PowerShell 5 (default windows) and PowerShell 7 (the new open source one), which means it isn't a executionpolicy issue.
The text was updated successfully, but these errors were encountered: