Mageia Bugzilla – Attachment 6185 Details for
Bug 15549
HP printer installed by system-config-printer not recognised by HP Printer Manager (HPLIP)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to make s-c-p detect a new printer without needing a reboot
apply-new-udev-rules.patch (text/plain), 675 bytes, created by
Martin Whitaker
on 2015-04-04 14:54:52 CEST
(
hide
)
Description:
patch to make s-c-p detect a new printer without needing a reboot
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2015-04-04 14:54:52 CEST
Size:
675 bytes
patch
obsolete
>--- system-config-printer.py.orig 2015-04-04 12:54:32.671272827 +0100 >+++ system-config-printer.py 2015-04-04 13:02:35.525053802 +0100 >@@ -509,6 +509,9 @@ > if not mga_printer_custom.is_installed_packages(['task-printing-server', 'task-printing-hp']): > if not mga_printer_custom.install_packages(['task-printing-server', 'task-printing-hp']): > sys.exit (1) >+ # ensure any new udev rules are applied to existing devices >+ os.system("/sbin/udevadm control --reload-rules") >+ os.system("/sbin/udevadm trigger") > os.system("/sbin/service cups start") > self.on_btnRefresh_clicked(None) >
--- system-config-printer.py.orig 2015-04-04 12:54:32.671272827 +0100 +++ system-config-printer.py 2015-04-04 13:02:35.525053802 +0100 @@ -509,6 +509,9 @@ if not mga_printer_custom.is_installed_packages(['task-printing-server', 'task-printing-hp']): if not mga_printer_custom.install_packages(['task-printing-server', 'task-printing-hp']): sys.exit (1) + # ensure any new udev rules are applied to existing devices + os.system("/sbin/udevadm control --reload-rules") + os.system("/sbin/udevadm trigger") os.system("/sbin/service cups start") self.on_btnRefresh_clicked(None)
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15549
:
6179
|
6183
|
6184
| 6185 |
6189