From 92b178b7404b002778d8288353f65e27ee5de5dd Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Mon, 1 Jul 2024 12:03:22 +0000 Subject: Guide users to using kio-admin instead of sudo This commit adds a guided setup that leads users from a situation in which they try to "sudo dolphin" towards them successfully setting up and using kio-admin. 1. When users enter "sudo dolphin", they are told to start Dolphin by typing "dolphin --sudo" or "dolphin --admin" instead. 2. When Dolphin is started with "--sudo" or "--admin" it checks whether an "admin" protocol is installed. If not, a guided setup leads users towards installing it. 3. After that, Dolphin starts with an installed "admin" protocoll like kio-admin. Now a non-modal information dialog appears that explains how to activate and use kio-admin. --- src/admin/workerintegration.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/admin/workerintegration.h') diff --git a/src/admin/workerintegration.h b/src/admin/workerintegration.h index 512303744..0c87c2ecf 100644 --- a/src/admin/workerintegration.h +++ b/src/admin/workerintegration.h @@ -22,6 +22,15 @@ class QUrl; */ namespace Admin { +/** + * When a user starts Dolphin with arguments that imply that they want to use administrative rights, this method is called. + * This function acts like a command line program that guides users towards installing kio-admin. It will not return until this is accomplished. + * This function will do nothing if kio-admin is already installed. + */ +void guideUserTowardsInstallingAdminWorker(); + +void guideUserTowardsUsingAdminWorker(); + /** * Used with the KMessageBox API so users can disable the warning. * @see KMessageBox::saveDontShowAgainContinue() -- cgit v1.3