返回 DeepSeek-Reasonix
postinstall.sh
根目录 / desktop / build / linux / postinstall.sh
1 #!/bin/sh
2 # Refresh desktop integration after both fresh installs and upgrades. Debian's
3 # package triggers usually do this too, but an explicit best-effort refresh
4 # repairs stale blank icons on desktops that kept an older cache.
5
6 # Chromium's SUID sandbox helper must be root:root 4755 so the renderer sandbox
7 # works without launching the shell with --no-sandbox.
8 if [ -f /usr/lib/reasonix/app/chrome-sandbox ]; then
9 chown root:root /usr/lib/reasonix/app/chrome-sandbox || true
10 chmod 4755 /usr/lib/reasonix/app/chrome-sandbox || true
11 fi
12
13 if [ -x /usr/bin/gtk-update-icon-cache ]; then
14 /usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor || true
15 fi
16
17 if [ -x /usr/bin/update-desktop-database ]; then
18 /usr/bin/update-desktop-database --quiet /usr/share/applications || true
19 fi
20
21 exit 0
22
22 lines BASH