mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
feat: add backend configuration and windows utilities, and initialize frontend dependencies
This commit is contained in:
@@ -33,7 +33,9 @@ func AddToStartup() error {
|
||||
}
|
||||
defer key.Close()
|
||||
|
||||
if err := key.SetStringValue(appName, exePath); err != nil {
|
||||
// Quote the path to handle spaces correctly and prevent execution hijacking
|
||||
quotedPath := fmt.Sprintf("\"%s\"", exePath)
|
||||
if err := key.SetStringValue(appName, quotedPath); err != nil {
|
||||
return fmt.Errorf("failed to set registry value: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user