Giter Club home page Giter Club logo

Comments (5)

happyTonakai avatar happyTonakai commented on July 18, 2024 1

Same issue

from burnttoast.

PeterKW avatar PeterKW commented on July 18, 2024

Same here, I haven't seen any articles saying that it no longer works

from burnttoast.

PeterKW avatar PeterKW commented on July 18, 2024

Has anyone got it working?

from burnttoast.

PeterKW avatar PeterKW commented on July 18, 2024

I wonder if it's to do with this? #233 (comment)

from burnttoast.

Sneakpeakcss avatar Sneakpeakcss commented on July 18, 2024

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

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.