Fix setup for systemd

This commit is contained in:
Bernd Schoolmann 2023-09-11 22:47:37 +02:00
parent c255ce18a7
commit 72f671e364
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ func setupSystemd() {
file.WriteString(strings.ReplaceAll(SYSTEMD_SERVICE, "BINARY_PATH", path))
file.Close()
command := exec.Command("pkexec", "mv", "/tmp/goldwarden.service", "/etc/systemd/system/goldwarden.service")
userDirectory := os.Getenv("HOME")
command := exec.Command("pkexec", "mv", "/tmp/goldwarden.service", userDirectory+"/.config/systemd/user/goldwarden.service")
err = command.Run()
if err != nil {
panic(err)