refactor: centralize common strings, paths, and default values into a new Constants class.
This commit is contained in:
@@ -16,7 +16,7 @@ public class Notifications : INotifications
|
||||
{
|
||||
var pInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = "notify-send",
|
||||
FileName = Toak.Core.Constants.Commands.Notify,
|
||||
Arguments = $"-a \"Toak\" \"{summary}\" \"{body}\"",
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true
|
||||
@@ -66,7 +66,7 @@ public class Notifications : INotifications
|
||||
|
||||
var pInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = "paplay",
|
||||
FileName = Toak.Core.Constants.Commands.PlaySound,
|
||||
Arguments = $"\"{absolutePath}\"",
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true
|
||||
|
||||
Reference in New Issue
Block a user