File: postinstall-linux.sh

package info (click to toggle)
open3d 0.16.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80,688 kB
  • sloc: cpp: 193,088; python: 24,973; ansic: 8,356; javascript: 1,869; sh: 1,473; makefile: 236; xml: 69
file content (13 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#/bin/bash

if [ $(id -u) = 0 ]; then
    update-mime-database /usr/share/mime # add new MIME types
    update-desktop-database # associate MIME -> app
    gtk-update-icon-cache /usr/share/icons/hicolor || true
else
    update-mime-database ~/.local/share/mime # add new MIME types
    update-desktop-database 2> /dev/null # associate MIME -> app
                                         # (junk confusing errors)
    # Desktop Environments seem to scan ~/.local for icons so no need for
    # gtk-update-icon-cache.
fi