예제 #1
0
func NewSoftwareProxy() (*SoftwareProxy, error) {
	softProxy := &SoftwareProxy{}

	var err error
	softProxy.softCenter, err = softwarecenter.NewSoftwareCenter(
		"com.linuxdeepin.softwarecenter",
		"/com/linuxdeepin/softwarecenter",
	)
	if err != nil {
		return nil, err
	}

	softProxy.listenPackageChangeSignal()

	return softProxy, nil
}
예제 #2
0
func NewSoftwareCenter() (*softwarecenter.SoftwareCenter, error) {
	return softwarecenter.NewSoftwareCenter(
		"com.linuxdeepin.softwarecenter",
		"/com/linuxdeepin/softwarecenter",
	)
}