Added translations

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

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

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

Loading…
Cancel
Save