Closed Shawn-Jones-7 closed 2 months ago
fixed
fixed
I conducted another test and the issue remained unchanged. Possibly, my previous formulation was incorrect. Specifically, it was "\ or | or、 " precisely above the Enter key.
OK, I'll test it again.
Same issue here
Can you test whether the artifact is effective?
https://github.com/wibus-wee/InjectGUI/actions/runs/10416144750
Can you test whether the artifact is effective?
https://github.com/wibus-wee/InjectGUI/actions/runs/10416144750
Thank you for investigating the issue, but the problem still persists in this artifact.
Can you test whether the artifact is effective? wibus-wee/InjectGUI/actions/runs/10416144750
Thank you for investigating the issue, but the problem still persists in this artifact.
I will continue to check the code problem. Thanks for the feedback!
Also new to Swift but I've personally made these changes to avoid dealing with special characters:
func checkAndSavePassword()
:
- executor.password = password
+ executor.password = password.encode()
func runAdminCommand()
:
- task.arguments = ["-c", "echo \(self.password) | sudo -S bash -c \"\(escapedCommand)\""]
+ task.arguments = ["-c", "echo \(self.password) | base64 --decode | sudo -S bash -c \"\(escapedCommand)\""]
extension String {}
:
func encode() -> String {
if let data = self.data(using: .utf8) {
return data.base64EncodedString()
}
return ""
}
Hope that helps.
@RayPS Thanks for the code!
My password contains "," and when I am asked to enter the password, no matter how I switch the input, it is always wrong, which forces me to change my password.