Skip to content

Commit

Permalink
fix: Fix the issue of manual. open dbus service response timeout
Browse files Browse the repository at this point in the history
  Fix the issue of manual. open dbus service response timeout

Log: Fix the issue of manual. open dbus service response timeout
Bug: https://pms.uniontech.com/bug-view-269561.html
  • Loading branch information
starhcq committed Sep 2, 2024
1 parent 2b9b53c commit f5033d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion debian/deepin-manual.postinst
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/bin/sh
#!/bin/bash

killall dman-search
killall dmanHelper
killall dman

#获取已登陆的用户
userNameArr=($(who -q | head -n 1))

#根据已登陆的用户开启后端定时任务
for userName in ${userNameArr[@]} ; do
runuser -l ${userName} -c "XDG_RUNTIME_DIR=\"/run/user/$(id -u ${userName})\" systemctl --user daemon-reload" || true
done

#rm -r /usr/share/deepin-manual/manual-assets/professional
#rm -r /usr/share/deepin-manual/manual-assets/server
Expand Down
2 changes: 1 addition & 1 deletion misc/deepin-manual.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=deepin manual service

[Service]
CapabilityBoundingSet=~CAP_NET_RAW
CapabilityBoundingSet=~
MemoryLimit=8G
ExecStart=/usr/bin/dman --dbus
Type=dbus
Expand Down

0 comments on commit f5033d2

Please sign in to comment.