nels-o / toaster Goto Github PK
View Code? Open in Web Editor NEWA wee Win8 console notifications app. Post toast notifications from the console, making it easy to integrate into existing batch scripts etc.
A wee Win8 console notifications app. Post toast notifications from the console, making it easy to integrate into existing batch scripts etc.
A colleague of mine was having this issue on Windows 10 when running this through gulp-notify
. The following error is shown when trying to notify.
Unhandled Exception: System.Exception: SQL error or missing database (Exception from HRESULT: 0x87AF0001)
at Windows.UI.Notifications.ToastNotifier.Show(ToastNotification notification)
at toast.Program.ShowToast(String title, String message, String imageURI, Boolean sound)
at toast.Program.Main(String[] args)
We traced the issue down to a corrupted Windows 10 notification database. Go to ~\AppData\Local\Microsoft\Windows\Notifications
and delete the three *.db*
files. You may need to close & restart Explorer.
Perhaps an enhancement which can be made to this app would be to catch this exception and output something a little more helpful.
It seems https://github.com/KDE/snoretoast provided working bin files, tested on Windows 10 1909.
One difference is that the -w option is replaced by a 2 level toasting time option in snoretoast 7.0, the 5.2 version till have it.
The installation process is non-existent. Bad news
Any considerations in creating a chocolatey package?
Would this be possible?
I'm using this project with #4 applied, so I disable the notification sound and I play my own notification sound at the same time I trigger a notification but sometimes the notification fails to show and the sound will still play regardless or maybe they're a tiny bit out of sync.
cc @mikaelbr
The -w chews on a rather disturbing amount of CPU (12% of 4.43GHz).
Normally there isn't much of a wait but I had something wrong with explorer and the toasts weren't running consistently, which is how I noticed.
Seems the official links and resources about the Windows API CodePack have disappeared from Microsoft's site. Are there any existing compiled versions that could be added to the Releases section of the repo? Been looking for a way to trigger Toast notifications from the command line.
Toast with any args specified doesn't seem to work, only the plain command e.g. toast "Hello"
works but toast -t "Test" -m "Hello World"
, toast "Hi" -t "Test"
will not
I'm having some trouble with toast messages calling it from bash in Windows.
If I use the -w option it seems to wait for a couple of minutes before continuing, if I don't it continues but I don't get the message.
I'm on Windows 8.1 using both ComEmu and Console2 as terminal emulators, it seems to work fine in Git Bash. Sometimes it also works fine but I get duplicate messages.
I'd be happy to help debug/provide more details - but I'm not sure how to at the moment. Any suggestions/requests would be appreciated.
When pinned to start, it runs and exits. When not, it spits out "Error". In either case, when -w is used it spits out "Error".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.