From 4e950b5c5fc6cf5a0c8635e206d4a504cc333fcc Mon Sep 17 00:00:00 2001 From: amid Date: Sun, 22 Jan 2023 17:50:02 +0600 Subject: [PATCH] Fix, localization & makefile & .desktop --- Makefile | 8 ++++++-- ubl-settings-datetime.desktop | 6 +++--- ubl-settings-datetime.po => ubl-settings-datetime_ru.po | 0 3 files changed, 9 insertions(+), 5 deletions(-) rename ubl-settings-datetime.po => ubl-settings-datetime_ru.po (100%) diff --git a/Makefile b/Makefile index 5a2f583..165a648 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,9 @@ uninstall: @$(RM) "/usr/share/applications/${PKGNAME}.desktop" @$(RM) "/usr/share/polkit-1/actions/org.freedesktop.policykit.${PKGNAME}.pkexec.policy" @$(RM) -rd "/usr/share/${PKGNAME}" - $(shell gtk-update-icon-cache -fiq /usr/share/icons/hicolor/ &>/dev/null) + @gtk-update-icon-cache -fiq /usr/share/icons/hicolor/ &>/dev/null + @update-desktop-database --quiet 2>/dev/null + @touch /usr/share/applications @echo "Uninstall: OK" install: check uninstall @@ -105,7 +107,9 @@ install: check uninstall @install -Dm644 -t /usr/share/${PKGNAME}/images/ ${PKGNAME}.svg @install -Dm644 -t /usr/share/${PKGNAME}/images/ ${PKGNAME}.png @cp -afr reg/* /usr/share/${PKGNAME}/reg/ - $(shell gtk-update-icon-cache -fiq /usr/share/icons/hicolor/) + @gtk-update-icon-cache -fiq /usr/share/icons/hicolor/ + @update-desktop-database --quiet 2>/dev/null + @touch /usr/share/applications @echo "Install: OK" clean: diff --git a/ubl-settings-datetime.desktop b/ubl-settings-datetime.desktop index 2f13fbe..2225ea4 100644 --- a/ubl-settings-datetime.desktop +++ b/ubl-settings-datetime.desktop @@ -1,10 +1,10 @@ [Desktop Entry] Encoding=UTF-8 -Name=Time date settings +Name=Date & time settings Name[ru]=Настройка даты времени -GenericName=Time date settings +GenericName=Date & time settings GenericName[ru]=Настройка даты и времени -Comment=Time date settings +Comment=Date time settings Comment[ru]=Приложение для настройки даты и времени Type=Application Exec=ubl-settings-datetime diff --git a/ubl-settings-datetime.po b/ubl-settings-datetime_ru.po similarity index 100% rename from ubl-settings-datetime.po rename to ubl-settings-datetime_ru.po