Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bluetooth1/obex_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,12 @@ func (a *obexAgent) notifyProgress(notify notifications.Notifications, replaceID
logger.Warning("failed to send notify:", err)
}
} else {
notify.CloseNotification(0, replaceID)
actions = []string{"_view", gettext.Tr("View")}
hints := map[string]dbus.Variant{"x-deepin-action-_view": dbus.MakeVariant("dde-file-manager,--show-item," + filename)}
notifyID, err = notify.Notify(0,
gettext.Tr("dde-control-center"),
replaceID,
0,
notifyIconBluetoothConnected,
fmt.Sprintf(gettext.Tr("You have received files from %q successfully"), device),
gettext.Tr("Done"),
Expand All @@ -484,9 +485,10 @@ func (a *obexAgent) notifyFailed(notify notifications.Notifications, replaceID u
body = gettext.Tr("Bluetooth connection failed")
}

notify.CloseNotification(0, replaceID)
notifyID, err := notify.Notify(0,
gettext.Tr("dde-control-center"),
replaceID,
0,
notifyIconBluetoothConnectFailed,
summary,
body,
Expand Down
3 changes: 2 additions & 1 deletion misc/services/org.deepin.dde.SoundEffect1.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[D-BUS Service]
Name=org.deepin.dde.SoundEffect1
Exec=/usr/lib/deepin-daemon/soundeffect
Exec=/bin/false
SystemdService=org.deepin.dde.SoundEffect1.service
16 changes: 16 additions & 0 deletions misc/systemd/services/user/org.deepin.dde.SoundEffect1.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Deepin Sound Effect Service
RefuseManualStart=no
RefuseManualStop=no
CollectMode=inactive-or-failed

PartOf=graphical-session.target
After=dbus.service

[Service]
Type=dbus
BusName=org.deepin.dde.SoundEffect1
ExecStart=/usr/lib/deepin-daemon/soundeffect
Slice=session.slice
Restart=on-failure
RestartSec=1s