diff -ur qt4urpm-1.0.1.orig/main.cpp qt4urpm-1.0.1/main.cpp --- qt4urpm-1.0.1.orig/main.cpp 2011-04-24 21:33:15.000000000 +0400 +++ qt4urpm-1.0.1/main.cpp 2016-02-23 11:30:14.000000000 +0300 @@ -63,20 +63,16 @@ // Try to start as root qt4urpm::termlog("Trying to start as root."); - std::string cmd("/usr/lib/kde4/libexec/kdesu "); + std::string cmd("pkexec /usr/bin/qt4urpm "); cmd += argv[0]; - if (system(cmd.c_str()) != 0) { - cmd = "/usr/lib64/kde4/libexec/kdesu "; - cmd += argv[0]; if (system(cmd.c_str()) != 0) { QString msg (QMainWindow::tr("You need to be root!\n\nTo ease the use of " - "qt4urpm we suggest to install libkdesu5 (run \"gurpmi libkdesu5\")")); + "qt4urpm we suggest to install polkit (run \"gurpmi polkit\")")); QMessageBox msgBox (QMessageBox::Critical, QMainWindow::tr("Not root!"), msg); msgBox.exec(); } - } return 0; } diff -ur qt4urpm-1.0.1.orig/qt4urpm_de.ts qt4urpm-1.0.1/qt4urpm_de.ts --- qt4urpm-1.0.1.orig/qt4urpm_de.ts 2016-02-23 12:43:03.000000000 +0300 +++ qt4urpm-1.0.1/qt4urpm_de.ts 2016-02-23 12:46:56.000000000 +0300 @@ -18,13 +18,13 @@ <location filename="main.cpp" line="73"/> <source>You need to be root! -To ease the use of qt4urpm we suggest to install libkdesu5 (run "gurpmi libkdesu5")</source> +To ease the use of qt4urpm we suggest to install polkit (run "gurpmi polkit")</source> <oldsource>You need to be root! To ease the use of qt4urpm we suggest to install gksu (run "gurpmi gksu")</oldsource> <translation>Du musst Root sein! -Um das Arbeiten mit qt4urpm zu erleichtern, empfehlen wir libkdesu5 zu installieren ("gurpmi libkdesu5")</translation> +Um das Arbeiten mit qt4urpm zu erleichtern, empfehlen wir polkit zu installieren ("gurpmi polkit")</translation> </message> <message> <location filename="main.cpp" line="76"/> diff -ur qt4urpm-1.0.1.orig/qt4urpm_es.ts qt4urpm-1.0.1/qt4urpm_es.ts --- qt4urpm-1.0.1.orig/qt4urpm_es.ts 2016-02-23 12:43:03.000000000 +0300 +++ qt4urpm-1.0.1/qt4urpm_es.ts 2016-02-23 12:47:37.000000000 +0300 @@ -7,7 +7,7 @@ <location filename="main.cpp" line="73"/> <source>You need to be root! -To ease the use of qt4urpm we suggest to install libkdesu5 (run "gurpmi libkdesu5")</source> +To ease the use of qt4urpm we suggest to install polkit (run "gurpmi polkit")</source> <oldsource>You need to be root! To ease the use of qt4urpm we suggest to install gksu (run "gurpmi gksu")</oldsource> diff -ur qt4urpm-1.0.1.orig/qt4urpm_fr.ts qt4urpm-1.0.1/qt4urpm_fr.ts --- qt4urpm-1.0.1.orig/qt4urpm_fr.ts 2016-02-23 12:43:03.000000000 +0300 +++ qt4urpm-1.0.1/qt4urpm_fr.ts 2016-02-23 12:48:10.000000000 +0300 @@ -7,13 +7,13 @@ <location filename="main.cpp" line="73"/> <source>You need to be root! -To ease the use of qt4urpm we suggest to install libkdesu5 (run "gurpmi libkdesu5")</source> +To ease the use of qt4urpm we suggest to install polkit (run "gurpmi polkit")</source> <oldsource>You need to be root! To ease the use of qt4urpm we suggest to install gksu (run "gurpmi gksu")</oldsource> <translation>Vous devez être connecté en root ! -Pour faciliter l'utilisation de qt4urpm nous suggérons d'installer libkdesu5 (lancer "gurpmi libkdesu5")</translation> +Pour faciliter l'utilisation de qt4urpm nous suggérons d'installer polkit (lancer "gurpmi polkit")</translation> </message> <message> <location filename="main.cpp" line="76"/> diff -ur qt4urpm-1.0.1.orig/qt4urpm_ru.ts qt4urpm-1.0.1/qt4urpm_ru.ts --- qt4urpm-1.0.1.orig/qt4urpm_ru.ts 2016-02-23 12:43:03.000000000 +0300 +++ qt4urpm-1.0.1/qt4urpm_ru.ts 2016-02-23 12:48:39.000000000 +0300 @@ -7,13 +7,13 @@ <location filename="main.cpp" line="73"/> <source>You need to be root! -To ease the use of qt4urpm we suggest to install libkdesu5 (run "gurpmi libkdesu5")</source> +To ease the use of qt4urpm we suggest to install polkit (run "gurpmi polkit")</source> <oldsource>You need to be root! To ease the use of qt4urpm we suggest to install gksu (run "gurpmi gksu")</oldsource> <translation>Вы должны иметь права root! -Для более простого использования qt4urpm мы рекомендуем установить libkdesu5 ("gurpmi libkdesu5")</translation> +Для более простого использования qt4urpm мы рекомендуем установить polkit ("gurpmi polkit")</translation> </message> <message> <location filename="main.cpp" line="76"/>