20 lines
706 B
Diff
20 lines
706 B
Diff
diff -Nuar dde-daemon-5.14.122/bin/dde-system-daemon/main.go dde-daemon-5.14.122.new/bin/dde-system-daemon/main.go
|
|
--- dde-daemon-5.14.122/bin/dde-system-daemon/main.go 2023-04-25 11:19:13.542003330 +0800
|
|
+++ dde-daemon-5.14.122.new/bin/dde-system-daemon/main.go 2023-04-25 11:19:47.070391949 +0800
|
|
@@ -70,8 +70,15 @@
|
|
if err != nil {
|
|
logger.Fatal("failed to call NameHasOwner:", err)
|
|
}
|
|
+
|
|
if hasOwner {
|
|
logger.Warningf("name %q already has the owner", dbusServiceName)
|
|
+ // avoid faile start account information
|
|
+ // first is launched by dbus ,second by systemd ,when first success ,the second just report ok
|
|
+ Ippid := os.Getppid()
|
|
+ if Ippid ==1 {
|
|
+ os.Exit(0)
|
|
+ }
|
|
os.Exit(1)
|
|
}
|
|
|