Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskovsky committed Feb 15, 2021
1 parent 3aad106 commit ddd4cd5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin/
notes/
obj/
.vs/
Debug.log
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Notify-send for Windows. Changelog

## Version 3.0.1

* Fixed version number displayed by command `notify-send -v`.

* Updated `Debug.bat`.

* The default timeout is increased to 10 seconds.

* Removed deprecated constructor.

[Download](https://github.com/vaskovsky/notify-send/releases/download/v3.0.1/notify-send.exe.3.0.1.zip)

[Source code](https://github.com/vaskovsky/notify-send/tree/v3.0.1)

## Version 3.0.0

The project has been rebuilt under .NET Framework 4.
Expand Down
2 changes: 1 addition & 1 deletion Debug.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bin\Release\notify-send "Debug" "Debugging notify-send..." -a "Notify-send" -i important --debug > Debug.log 2>&1
bin\Release\notify-send "Debug" "Debugging notify-send..." -i important --debug > Debug.log 2>&1
@type Debug.log
@pause
24 changes: 5 additions & 19 deletions NotifySend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ namespace Vaskovsky
/** NotifySend notify-send is a tool that displays pop-up desktop notifications. */
public class NotifySend : ApplicationContext
{
private const string Version = "notify-send for Windows 2.1.0";
private const int DefaultTimeout = 5000;
private const string DefaultAppName = "notify-send for Windows";
private const string Version = "notify-send for Windows 3.0.1";
private const int DefaultTimeout = 10000;
private const string DefaultAppName = "notify-send";
private const string DefaultTitle = DefaultAppName;
private const string Usage = @"Usage:
notify-send [-i info|important|error] ""TITLE"" ""MESSAGE""
Expand Down Expand Up @@ -118,19 +118,6 @@ public NotifySend()
Notification.Click += new EventHandler(this.Hide);
}

/** Creates new notification and sets ExitOnClose = true. */
[Obsolete("Use NotifySend() and properties.")]
public NotifySend(
string title, string message, ToolTipIcon icon, int timeout
) : this()
{
Title = title;
Message = message;
Icon = icon;
Timeout = timeout;
ExitOnClose = true;
}

/** Displays this notification. */
public void Show()
{
Expand All @@ -157,7 +144,7 @@ private void Exit(object sender, EventArgs e)
IsRunning = false;
if (Debug)
Console.WriteLine(Timestamp() + " NotifySend.Exit");
this.ExitThread();
Application.Exit();
}
}

Expand Down Expand Up @@ -283,7 +270,6 @@ static void Main(string[] args)
if (notifySend.Debug)
{
Console.WriteLine(Timestamp() + " NotifySend.Init");
Console.WriteLine("\tAppName: " + notifySend.AppName);
Console.WriteLine("\tTitle: " + notifySend.Title);
Console.WriteLine("\tMessage: " + notifySend.Message);
Console.WriteLine("\tIcon: " + notifySend.Icon);
Expand All @@ -299,4 +285,4 @@ static void Main(string[] args)
}
}
}
}
}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# notify-send for Windows

notify-send is a tool that displays pop-up desktop notifications.
notify-send is a program to send desktop notifications.

## Building

Expand All @@ -25,11 +25,12 @@ The possible values of `ICON` are: `info` | `important` | `error`.
Default: `info`.

`-a APPNAME`:
specifies the application name for the icon.
sets the ToolTip text displayed when the mouse pointer rests
on a notification area icon.

`-t TIMEOUT`:
specifies the timeout in milliseconds at which to expire the notification.
Default: 5000.
Default: 10000.

This parameter is deprecated as of Windows Vista.
Notification display times are now based on system accessibility settings.
Expand All @@ -40,7 +41,7 @@ Notification display times are now based on system accessibility settings.

`--debug`: enables the debug mode.

`-u LEVEL`, `-c TYPE`, `-h HINT` are ignored
, `-u LEVEL`, `-c TYPE`, `-h HINT` are ignored
(designed for compatibility with the Linux version).

`--`: end of options.
Expand Down

0 comments on commit ddd4cd5

Please sign in to comment.