Comments (5)
Same issue
from burnttoast.
Same here, I haven't seen any articles saying that it no longer works
from burnttoast.
Has anyone got it working?
from burnttoast.
I wonder if it's to do with this? #233 (comment)
from burnttoast.
Same problem here, for some reason notifications stopped appearing somewhere in the past month or two, and i only now noticed that. I'm using the default PowerShell
that came with WIN10 PRO 22H2
, so the issue regarding windows store version seems unrelated.
I'm still seeing notifications from other applications and can even manually pop one from PS:
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon
$objNotifyIcon.Icon = [System.Drawing.SystemIcons]::Information
$objNotifyIcon.BalloonTipIcon = "Info"
$objNotifyIcon.BalloonTipText = "Test text"
$objNotifyIcon.BalloonTipTitle = "Test title"
$objNotifyIcon.Visible = $True
$objNotifyIcon.ShowBalloonTip(10000)
Start-Sleep 500
Reinstalling BurntToast
didn't help, and both 0.8.5
/1.0.0-Preview2
versions aren't working. It's very weird because i don't remember anything that would suddenly cause this. Updates on my system are completely controlled, and i cannot remember doing one in the timeframe where BurntToast
broke.
One of my last scripts that worked was created on 14th of january, so something had to happen recently and i have no clue what changed that could cause this… Any info would be appreaciated.
[EDIT]
Well... 1h and one stackoverflow [1][2] post later… My issue was caused by modified PowerShell
shortcut located in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Windows PowerShell
, apparently changing Target
property:
- %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
+ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoLogo
was what broke BurntToast
notifications for me, removing -NoLogo
fixed it. So this issue might be related to those two (Windows PowerShell
/Windows PowerShell (x86)
) shortcuts located in the mentioned Start Menu
path.
[EDIT2]
Since it's possible to use a custom AppId
by using -AppId
parameter then it's possible to make it work with my -NoLogo
, and most likely with the Windows Store
version of PowerShell
that was mentioned in the other issue.
Using this in PS will create a file on desktop with available ID's:
Get-StartApps | Format-List | Out-File -FilePath "$HOME\Desktop\BurntToastAppId.txt"
After that it's just a matter of finding AppID
of Windows PowerShell
(though any other will also work) and adding it to BurntToast
command:
New-BurntToastNotification -Text 'Yoooo, this is a toast notification... from PowerShell!' -AppId 'Microsoft.AutoGenerated.{C9F392EB-B250-4678-1F0C-F0DEEAEDBECC}'
There's also the option of replacing the default one in "C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.8.5\config.json"
to avoid setting the parameter with every command.
from burnttoast.
Related Issues (20)
- Toast History access and Toast removal failures on PowerShell 7.1 HOT 3
- No alert sound on multiple machines, except on the first I installed to. HOT 3
- BurntToast -AppLogo does not accept valid UNC paths to WSL locations HOT 2
- Missing documentation on the ActivatedAction parameter on Submit-BTNotification function HOT 1
- empty AppLogo as default value HOT 6
- Doc: how to enable notifications HOT 2
- Typo in Example05? HOT 1
- Toast History access failure on PowerShell 7.2.1 HOT 2
- Provide a feature to read the content of currently displayed Toast Notifications HOT 4
- [Bug]: MethodInvocationException: Exception calling "Show" with "1" argument(s): "Access is denied. HOT 1
- [Bug]: Update-BTNotification not doing its job even when verbose shows no error. HOT 5
- Replace/Remove Shipped DLLs
- Allow variable names to be displayed in the toast notification HOT 1
- character limit notification text HOT 1
- New-BurntToastNotification Button Overflow Menu HOT 1
- icon and heroImage with http-URL HOT 1
- [Bug]: Can't set button label with New-BTButton with Update-BTNotification HOT 2
- warn not to use Windows Store PowerShell
- Easy way to register Notification App (Name and Icon)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burnttoast.