Skip to content

Commit c39c19c

Browse files
kt286deepin-bot[bot]
authored andcommitted
fix: dde-open error when use old am
dde-open error when use old am
1 parent 65fcbe6 commit c39c19c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dde-open/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515

1616
"github.com/godbus/dbus/v5"
17-
startmanager "github.com/linuxdeepin/go-dbus-factory/session/org.deepin.dde.startmanager1"
17+
appmanager "github.com/linuxdeepin/go-dbus-factory/session/org.deepin.dde.application1"
1818
gio "github.com/linuxdeepin/go-gir/gio-2.0"
1919
"github.com/linuxdeepin/go-lib/log"
2020
)
@@ -142,14 +142,14 @@ func launchApp(appInfo AppInfo, filename string) error {
142142
return err
143143
}
144144

145-
// NOTE: fallback to use old startmanager
145+
// NOTE: fallback to use old appmanager
146146

147147
sessionBus, err := dbus.SessionBus()
148148
if err != nil {
149149
return err
150150
}
151-
startManager := startmanager.NewStartManager(sessionBus)
152-
err = startManager.LaunchApp(dbus.FlagNoAutoStart, appInfo.desktopFile, 0, []string{filename})
151+
appManager := appmanager.NewManager(sessionBus)
152+
err = appManager.LaunchApp(dbus.FlagNoAutoStart, appInfo.desktopFile, 0, []string{filename})
153153

154154
return err
155155
}

0 commit comments

Comments
 (0)