Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
bee
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
0
Code
Issues
7
Pull requests
3
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
407f531
buildtypes
conf
contrib
hooks
gconf-install-schemas.sh
gdk-pixbuf-query-loaders.sh
glib-compile-schemas.sh
gtk-update-icon-cache.sh
info-dir.sh
ldconfig.sh
mandb.sh
mkfontdir-mkfontscale.sh
systemd-tmpfiles.sh
update-desktop-database.sh
update-mime-database.sh
manpages
src
.gitattributes
.gitignore
COPYING
Makefile
TODO
Breadcrumbs
bee
/
hooks
/
update-mime-database.sh
Blame
Blame
Latest commit
History
History
49 lines (46 loc) · 1.42 KB
Breadcrumbs
bee
/
hooks
/
update-mime-database.sh
Top
File metadata and controls
Code
Blame
49 lines (46 loc) · 1.42 KB
Raw
#!/bin/bash # # update-mime-database hook # # Copyright (C) 2009-2011 # Marius Tolzmann <tolzmann@molgen.mpg.de> # Tobias Dreyer <dreyer@molgen.mpg.de> # and other bee developers # # This file is part of bee. # # bee is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # action=${1} pkg=${2} if [ -z ${BEE_VERSION} ] ; then echo >&2 "BEE-ERROR: cannot call $0 from the outside of bee .." exit 1 fi if ! which update-mime-database >/dev/null 2>&1 ; then exit 0 fi for dir in ${XDG_DATA_DIRS//:/ } ; do mime_dir=${dir}/mime if grep -q "file=${mime_dir}/packages" ${BEE_METADIR}/${pkg}/CONTENT ; then case "${action}" in "post-install") update-mime-database ${mime_dir} ;; "post-remove") update-mime-database ${mime_dir} ;; esac fi done
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
37
38
39
40
41
42
43
44
45
46
47
48
49
You can’t perform that action at this time.