File: doublecmd-svn.install

package info (click to toggle)
doublecmd 1.1.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,968 kB
  • sloc: pascal: 374,335; sh: 1,180; ansic: 724; makefile: 132; python: 52; xml: 16
file content (36 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# doublecmd-svn.install

update_icons() {

	# Setup Menus
	if which update-desktop-database
	then
		update-desktop-database -q /usr/share/applications > /dev/null 2>&1
	fi

	# Setup MIME types
	if which update-mime-database
	then
		update-mime-database /usr/share/mime > /dev/null 2>&1
	fi

	# Setup Icons
	touch -c /usr/share/icons/hicolor
	if which gtk-update-icon-cache
	then
		gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1
	fi

}

post_install() {
	update_icons
}

post_upgrade() {
	update_icons
}

post_remove() {
	update_icons
}