File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments