Added translations

Added --force option
main v0.1.4
Arkady L. Shane 1 month ago
parent 72a4fe0241
commit af00f6efe6
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1,6 +1,8 @@
[Desktop Entry]
Name=Choose Desktop
GenericName=Choose Desktop Design
Name=Choose Desktop Design
Name[ru]=Выбор оформления рабочего стола
Comment=Choose Windows 10 or MacOS style
Comment[ru]=Выберите стиль Windows 10 или MacOS
Exec=/usr/bin/gnome-flavour-selector
Terminal=false
Icon=org.gnome.tweaks.svg

@ -1,5 +1,13 @@
#!/bin/sh
FORCE_KEY="$1"
if [ "x$FORCE_KEY" != "x" -a "$FORCE_KEY" != "--force" ]; then
echo "Unknown key. Exit."
exit 1
fi
LOCK_FILE="$HOME/.config/gnome-flavour-selector/timestamp"
EXTENSIONS_SWITCHER="/etc/gnome-flavour-selector/extensions.json"
@ -35,10 +43,14 @@ if [ -f "$LOCK_FILE" -a -f "$EXTENSIONS_SWITCHER" ]; then
done
fi
if [ -f "$LOCK_FILE" ]; then
if [ -f "$LOCK_FILE" -a "$FORCE_KEY" != "--force" ]; then
exit 0
fi
if [ "$FORCE_KEY" != "--force" ]; then
date +%Y%m%d%H%M > $LOCK_FILE
fi
EXTENSIONS="arcmenu@arcmenu.com ding@rastersoft.com dash-to-panel@jderose9.github.com"
for ext in $EXTENSIONS; do
gnome-extensions disable $ext
@ -105,5 +117,3 @@ elif [ $MODE = "Shell" ]; then
else
echo "Unknown"
fi
date +%Y%m%d%H%M > $LOCK_FILE

Loading…
Cancel
Save