|
Lines 360-366
Link Here
|
| 360 |
{ // After the autoconfig settings have been successfully applied, |
360 |
{ // After the autoconfig settings have been successfully applied, |
| 361 |
// check if cups-autoconfig should run now: |
361 |
// check if cups-autoconfig should run now: |
| 362 |
if( cups_autoconfig_triggered ) |
362 |
if( cups_autoconfig_triggered ) |
| 363 |
{ if( ! Printerlib::ExecuteBashCommand( "/usr/lib/cups-autoconfig/cups-autoconfig --add" ) ) |
363 |
{ // Depending on the architecture /usr/lib*/cups-autoconfig/cups-autoconfig could actually |
|
|
364 |
// be /usr/lib/cups-autoconfig/cups-autoconfig (in SLE11 on i586, ia64, ppc, s390) |
| 365 |
// or /usr/lib64/cups-autoconfig/cups-autoconfig (in SLE11 on ppc64, s390x, x86_64) |
| 366 |
// or /usr/lib32/cups-autoconfig/cups-autoconfig (not in SLE11 but possible in a third-party package). |
| 367 |
// If several /usr/lib*/cups-autoconfig/cups-autoconfig exist, simply the first one |
| 368 |
// in the ls output which is /usr/lib/cups-autoconfig/cups-autoconfig is used here: |
| 369 |
if( ! Printerlib::ExecuteBashCommand( "$( ls -1 /usr/lib*/cups-autoconfig/cups-autoconfig | head -n1 ) --add" ) ) |
| 364 |
{ Popup::ErrorDetails( // Popup::ErrorDetails message. |
370 |
{ Popup::ErrorDetails( // Popup::ErrorDetails message. |
| 365 |
_("Automatic configuration failed."), |
371 |
_("Automatic configuration failed."), |
| 366 |
Printerlib::result["stderr"]:"" |
372 |
Printerlib::result["stderr"]:"" |