Skip to content

Commit

Permalink
chore: dont set PATH env
Browse files Browse the repository at this point in the history
Log: dbus 环境缺失环境变量应该由 dbus-update-activation-environment 处理 ,不应该由 dde-api 设置 PATH
  • Loading branch information
wineee authored and deepin-bot[bot] committed May 5, 2023
1 parent e46a1f7 commit e9fd08f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions device/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package main

import (
"os"
"time"

"github.com/linuxdeepin/go-lib/dbusutil"
Expand All @@ -15,7 +14,6 @@ import (
var logger = log.NewLogger(dbusServiceName)

func main() {
os.Setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")
service, err := dbusutil.NewSystemService()
if err != nil {
logger.Fatal("failed to new system service:", err)
Expand Down
2 changes: 0 additions & 2 deletions locale-helper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package main

import (
"os"
"os/exec"
"sync"
"time"
Expand Down Expand Up @@ -45,7 +44,6 @@ var (
)

func main() {
os.Setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")
logger.BeginTracing()
defer logger.EndTracing()

Expand Down

0 comments on commit e9fd08f

Please sign in to comment.