vaskovsky / notify-send Goto Github PK
View Code? Open in Web Editor NEWnotify-send for Windows
License: GNU Lesser General Public License v3.0
notify-send for Windows
License: GNU Lesser General Public License v3.0
Hi Alexey,
I don't have time to compile (I may use CodeBlocks for this).
But it doesn't work for me in Windows 10 (64-bit).
Please take a look when you have time.
Thanks for creating this! :)
Hi, on Windows 10 I'm prompted to install .NET2/3 which are really old by now. Can you please update the dependency to .NET 4 or later? Thanks
Using notify-send with single quotes, i.e.:
notify-send 'Hello world' 'Dummy message'
Breaks the title and uses only the first word:
I think the problem is that notify-send is ignoring completely the single quotes.
I'm using notify-send to redirect the Laravel Mix notifications from Homestead to Windows, which looks like this:
Hi!
Apparently setting the title with -a "title" doesn't seem to have any effect on the notification as it always displays the title 'notify-send.exe'. Also the notification is disappearing from Notification Center, not sticking around until dismissed like it should.
notify-send.exe --debug -i error -a "Teste" "Novidades" "Hello World"
2021-02-12 09:52:54 NotifySend.Init
AppName: Teste
Title: Novidades
Message: Hello World
Icon: Error
Timeout: 5000
2021-02-12 09:52:54 NotifySend.Show
2021-02-12 09:53:01 NotifySend.Hide
2021-02-12 09:53:01 NotifySend.Exit
When running notify-send with the same arguments multiple times in a row, dismissing the notification causes only one instance to quit. The rest of the instances keep waiting forever even though there are no notifications left to dismiss.
As you can see from this output, several changes were needed to make the build work:
$ $WINDIR/Microsoft.NET/Framework/v4.0.30319/csc.exe -o+ -sdk:4 -r:System.Windows.Forms -r:System.Drawing -win32icon:notify-send.ico -out:notify-send.exe NotifySend.cs
Microsoft (R) Visual C# Compiler version 4.8.4161.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
fatal error CS2007: Unrecognized option: '-sdk:4'
$ $WINDIR/Microsoft.NET/Framework/v4.0.30319/csc.exe -o+ -r:System.Windows.Forms -r:System.Drawing -win32icon:notify-send.ico -out:notify-send.exe NotifySend.cs
Microsoft (R) Visual C# Compiler version 4.8.4161.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
error CS2001: Source file 'NotifySend.cs' could not be found
warning CS2008: No source files specified
$ $WINDIR/Microsoft.NET/Framework/v4.0.30319/csc.exe -o+ -r:System.Windows.Forms -r:System.Drawing -win32icon:notify-send.ico -out:notify-send.exe NotifySendCLI.cs
Microsoft (R) Visual C# Compiler version 4.8.4161.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
error CS0006: Metadata file 'System.Windows.Forms' could not be found
error CS0006: Metadata file 'System.Drawing' could not be found
$ $WINDIR/Microsoft.NET/Framework/v4.0.30319/csc.exe -o+ -win32icon:notify-send.ico -out:notify-send.exe NotifySendCLI.cs
Microsoft (R) Visual C# Compiler version 4.8.4161.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
When starting the application the notification does not show up. The tray icon appears and stays there until I click it but the notification does not appear, no matter how long I wait.
I am using Windows 10 x64
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.