@lgm Can't you do
# Pre-install:
CURRENT_USER=$(whoami)
## install actions here
# Post-install
sudo -u "$CURRENT_USER" -- systemctl enable --now ecbd.service
to enable that service without manual post-install actions?
Git Clone URL: | https://aur.archlinux.org/epson-printer-utility.git (read-only, click to copy) |
---|---|
Package Base: | epson-printer-utility |
Description: | This is a Printer Utility program for Epson. Using this software, you can check ink levels, view error and other status... on EPSON Printers. |
Upstream URL: | http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX |
Keywords: | ecbd epson |
Licenses: | LGPL, custom:Epson License Agreement |
Submitter: | wuut |
Maintainer: | darkelectron |
Last Packager: | darkelectron |
Votes: | 17 |
Popularity: | 0.50 |
First Submitted: | 2019-02-22 10:29 (UTC) |
Last Updated: | 2024-03-30 17:39 (UTC) |
@lgm Can't you do
# Pre-install:
CURRENT_USER=$(whoami)
## install actions here
# Post-install
sudo -u "$CURRENT_USER" -- systemctl enable --now ecbd.service
to enable that service without manual post-install actions?
@lgm Please fix the URL
This worked: source=("https://download3.ebz.epson.net/dsc/f/03/00/11/12/35/8b90dcfff7b9f97dd10af55497e110e910f25f42/${pkgname}_${pkgver}-1lsb3.2_amd64.deb"
curl: (22) The requested URL returned error: 404 Not Found ==> ERROR: Failure while downloading https://download3.ebz.epson.net/dsc/f/03/00/11/02/00/8de9aac5edcc5aaf1549ff252f6f12939b6ab28a/epson-printer-utility_1.1.1-1lsb3.2_amd64.deb Aborting... Failed to build epson-printer-utility
@thibaultmol the package does have a post_install/post_upgrade hook already that contains this information
@lgm fair enough, maybe including it as an echo would be helpful though: https://www.reddit.com/r/archlinux/comments/88r8nz/where_to_output_additional_information_in_a/
@thibaultmol, I can't do that. It would be pretty invasive to just enable a service with root rights during the install. The info through the post-install method is the best I can do. I'm sorry.
@lgm could you add the line to enable the deamon to the pckgbuild?
sudo systemctl enable --now ecbd.service
Thank you! I wasn't aware that this package needs a daemon, as I don't own an Epson printer myself. I'll pass on the solution. Thx again!
Hi mielouk. I cannot say anything about the icui18n error. I have installed icu and lib32-icu. And do not see it
About the Communication daemon down, Error code = -1
, did you sudo systemctl enable --now ecbd.service
? I can reproduce this error only when I stop this service.
Pinned Comments
lgm commented on 2020-08-21 15:06 (UTC) (edited on 2020-10-18 11:36 (UTC) by lgm)
The following error displayed by
epson-printer-utility
can be safely ignored. I don't know what is the cause, but is doesn't affect usability:Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)"
If you get the error
Communication daemon down, Error code = -1
, you have to start theecbd
service. You can either do that withsudo systemctl enable --now ecbd.service
if you want the serice to run at system startup or withsudo systemctl start ecbd.service
if you only want to start the service manually each time you useepson-printer-utility