diff options
| author | Felix Ernst <[email protected]> | 2024-07-01 12:03:22 +0000 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2024-07-01 12:03:22 +0000 |
| commit | 92b178b7404b002778d8288353f65e27ee5de5dd (patch) | |
| tree | ae38ce183e67098f7d0beb43b7de9dc9ca1e0c52 /src/admin/workerintegration.h | |
| parent | 887f3a6e83832d645ddf55d38e3a098b64e12dd5 (diff) | |
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.
Diffstat (limited to 'src/admin/workerintegration.h')
| -rw-r--r-- | src/admin/workerintegration.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -23,6 +23,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() * @see KMessageBox::enableMessage() |
