Fix for the sender icon not being rendered in notifications sometimes (#862)

* fix for the sender icon not being rendered sometimes in notifications

* removing a line

* removing the environment every time we run a zsh command

* removed unused parameters that we already have stored in the notification

* changelog
This commit is contained in:
Mauro
2023-05-08 17:05:55 +02:00
committed by GitHub
parent 8cfb415410
commit 542cefd703
4 changed files with 39 additions and 23 deletions
+1
View File
@@ -19,6 +19,7 @@ enum Utilities {
@discardableResult
static func zsh(_ command: String, workingDirectoryURL: URL = projectDirectoryURL) throws -> String? {
let process = Process()
process.environment = [:]
process.executableURL = URL(fileURLWithPath: "/bin/zsh")
process.arguments = ["-cu", command]
process.currentDirectoryURL = workingDirectoryURL