NaitLee / Cat-Printer

Application supporting Bluetooth thermal “Cat Printers”, for everyone!
GNU General Public License v3.0
334 stars 33 forks source link

A service to make everyday work easier. #12

Closed frankenstein91 closed 2 years ago

frankenstein91 commented 2 years ago

I was thinking that now that we have CUPS integration again, it's good to have the tool running in the background too. To the best of my knowledge, I have written a service file for Systemd and also adapted the PKGBUILD.

NaitLee commented 2 years ago

Interesting 😄 Though I don't like systemd, it's not a big deal to have the support -- As long as we don't absolutely depend on it. (i.e. don't fail the install just because there's no systemd, like on my Artix)

I want it to be adapted also to something like OpenRC or SysV.

Also I think I should use ThreadingHTTPServer for platform other than Android, to avoid service blocking between IPP and Web interface.

NaitLee commented 2 years ago

Suddenly realized it's better to union text printing to CUPS/IPP. Very useful in real works. In CUPS it's the driver Text-Only Printer.

frankenstein91 commented 2 years ago

That's funny... As I was writing that... I was thinking you could be a non systemd user. Currently the install will not fail... But I don't have the knowledge to write the files for openRC and sysv. Sorry 🙇‍♂️

NaitLee commented 2 years ago

Oh, fine... The term "want it to be" means that anyone (else, including me) could pick it up and do it, in contrast of bare "want" "should" or whatever. There are many init "units" around as examples for reference, I may do it at some time in the future.

NaitLee commented 2 years ago

I think I'm making big change to program structure. This may cost some time. I also think I should merge this now and modify something inside...

During this period it's advised to not open pull requests. But of course you can still do some investigations in your branch. After the update you may pull this repo once and adjust the leftovers.

frankenstein91 commented 2 years ago

During this period it's advised to not open pull requests.

I would need to make a small fix for the PKG build the next days 😸