OpenPrinting / system-config-printer

Graphical user interface for CUPS administration
GNU General Public License v2.0
170 stars 89 forks source link

Add a StartService for systemd based systems #56

Closed althonos closed 7 years ago

althonos commented 7 years ago

Hi !

I noticed that the Start Service button didn't work on my ArchLinux system, because I was using systemd. I adapted the program to try launching org.cups.cupsd.service through systemd if the system is detected to use systemd (i.e. /usr/lib/systemd exists), and use SysV otherwise (the current default).

The fix did the job on my machine and the edits are pretty straightforward. Feel free to ask if something is not clear enough.