summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUladzimir Panasiuk2019-02-22 14:11:34 +0300
committerUladzimir Panasiuk2019-02-22 14:11:34 +0300
commit9db2d25491f0d0f95f6ef4c310abc6b83d38a66d (patch)
tree336466283c75de35af532295730697622923839e
parent4ae47db4346aa98953531eebb216b9c50a502646 (diff)
downloadaur-9db2d25491f0d0f95f6ef4c310abc6b83d38a66d.tar.gz
Desktop entry
-rw-r--r--.SRCINFO4
-rw-r--r--epson-printer-utility.desktop8
-rw-r--r--epson-printer-utility.install4
3 files changed, 13 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d3bd9259a96..65430dfd0c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -13,9 +13,11 @@ pkgbase = epson-printer-utility
source = https://download3.ebz.epson.net/dsc/f/03/00/09/02/33/71b2905a4cdf07374e83281333a767b24b57bc2d/epson-printer-utility_1.0.2-1lsb3.2_amd64.deb
source = ecbd.service
source = epson-printer-utility.install
+ source = epson-printer-utility.desktop
sha256sums = ecfe72484087bb1af5eb7ce83410f4efe96530f670a151ffeb9bad7b5b230650
sha256sums = 8cc99a3e68b3367f4a78c05b93fdbbdcded13302fac72daf20b5a0ec9c6c9d55
- sha256sums = a44c620094a8f807bd7c1286e772ca3de6f8983517d83f1ecd684d2632051f94
+ sha256sums = c35c69fd16534c8e5b382e5918d921cf9a82d96b522833d50b652035f11eaa7c
+ sha256sums = 9ec18291dfc6b886be438883a0b8e5d3f4eb7dfc570bc4b8c9dbe5dfc1d33e9f
pkgname = epson-printer-utility
diff --git a/epson-printer-utility.desktop b/epson-printer-utility.desktop
new file mode 100644
index 00000000000..a73c700e5a2
--- /dev/null
+++ b/epson-printer-utility.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Name=Epson Printer Utility
+Type=Application
+Categories=Application;Printing;
+Exec=epson-printer-utility
+Terminal=false
+Icon=/opt/epson-printer-utility/resource/Images/AppIcon.png
diff --git a/epson-printer-utility.install b/epson-printer-utility.install
index 6be45f253f4..dd3805cc1cf 100644
--- a/epson-printer-utility.install
+++ b/epson-printer-utility.install
@@ -5,11 +5,11 @@ post_install() {
}
pre_remove() {
- [[ $(systemctl is-enabled $SERVICE) ]] && systemctl disable --now $SERVICE
+ [[ $(systemctl is-enabled $SERVICE 1>/dev/null) ]] && systemctl disable --now $SERVICE
}
post_upgrade() {
- if systemctl is-active $SERVICE; then
+ if systemctl is-active $SERVICE 1>/dev/null; then
systemctl daemon-reload
systemctl restart $SERVICE
fi