forked from dnschneid/crouton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtk-extra
27 lines (25 loc) · 860 Bytes
/
gtk-extra
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
#!/bin/sh -e
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
REQUIRES='x11'
DESCRIPTION='GTK-based tools including gdebi and a simple browser.'
. "${TARGETSDIR:="$PWD"}/common"
### Append to prepare.sh:
install_dummy network-manager network-manager-gnome
install gdebi
if release -lt buster -lt kali-rolling -lt artful; then
install gksu
fi
for BROWSER in netsurf-gtk dillo hv3 ""; do
test -n "$BROWSER"
if install "$BROWSER"; then
bin="/usr/bin/$BROWSER"
for link in x-www-browser gnome-www-browser; do
if ! update-alternatives --query "$link" | grep -q "$bin"; then
update-alternatives --install "/usr/bin/$link" "$link" "$bin" 10
fi
done
break
fi
done