mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
Sync with upstream master
This commit is contained in:
commit
0b5eb81428
@ -1 +1,7 @@
|
|||||||
Run install.sh to install the icon for all the users.
|
Run install.sh without any arguments to install the extension for all the users.
|
||||||
|
|
||||||
|
If you want to install the extension only for the current user, run
|
||||||
|
|
||||||
|
install.sh local
|
||||||
|
|
||||||
|
instead.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
|
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
|
||||||
/* Olaf Leidinger <oleid@mescharet.de> 20130318 */
|
/* Olaf Leidinger <oleid@mescharet.de>
|
||||||
|
Thomas Liebetraut <thomas@tommie-lie.de>
|
||||||
|
*/
|
||||||
|
|
||||||
const Gdk = imports.gi.Gdk;
|
const Gdk = imports.gi.Gdk;
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
@ -192,7 +194,8 @@ const TeaTime = new Lang.Class({
|
|||||||
|
|
||||||
function init(metadata) {
|
function init(metadata) {
|
||||||
// TODO: at some point, add translations
|
// TODO: at some point, add translations
|
||||||
;
|
let theme = imports.gi.Gtk.IconTheme.get_default();
|
||||||
|
theme.append_search_path(metadata.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
let _TeaTime;
|
let _TeaTime;
|
||||||
|
24
install.sh
24
install.sh
@ -1,11 +1,23 @@
|
|||||||
NAME="TeaTime@oleid.mescharet.de"
|
NAME="TeaTime@oleid.mescharet.de"
|
||||||
INST_DIR="$HOME/.local/share/gnome-shell-extensions/$NAME"
|
|
||||||
|
|
||||||
echo "Installing icon"
|
if [ "$1" = "local" ] ; then
|
||||||
sudo cp utilities-teatime.svg /usr/share/icons/hicolor/scalable/apps/
|
INST_DIR="$HOME/.local/gnome-shell/extensions/$NAME"
|
||||||
sudo gtk-update-icon-cache /usr/share/icons/hicolor/
|
SUDO=""
|
||||||
|
else
|
||||||
|
INST_DIR="/usr/share/gnome-shell/extensions/$NAME"
|
||||||
|
SUDO="sudo"
|
||||||
|
|
||||||
|
echo "Installing icon"
|
||||||
|
$SUDO cp utilities-teatime.svg /usr/share/icons/hicolor/scalable/apps/
|
||||||
|
$SUDO gtk-update-icon-cache /usr/share/icons/hicolor/
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Installing extension"
|
echo "Installing extension"
|
||||||
mkdir -p "$INST_DIR"
|
$SUDO mkdir -p "$INST_DIR"
|
||||||
|
|
||||||
cp *.js *.json "$INST_DIR"
|
$SUDO cp *.js *.json "$INST_DIR"
|
||||||
|
|
||||||
|
if [ "$1" = "local" ]; then
|
||||||
|
$SUDO cp *.svg "$INST_DIR"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user