┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2024-07-01 12:03:22 +0000
committerFelix Ernst <[email protected]>2024-07-01 12:03:22 +0000
commit92b178b7404b002778d8288353f65e27ee5de5dd (patch)
treeae38ce183e67098f7d0beb43b7de9dc9ca1e0c52 /src/CMakeLists.txt
parent887f3a6e83832d645ddf55d38e3a098b64e12dd5 (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/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2f11c3353..fe9ac1f45 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,6 @@
include(ECMAddAppIcon)
+set(ADMIN_WORKER_PACKAGE_NAME "kio-admin")
configure_file(config-dolphin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-dolphin.h)
add_definitions(
@@ -274,6 +275,7 @@ target_sources(dolphinstatic PRIVATE
dolphincontextmenu.cpp
dolphinnavigatorswidgetaction.cpp
dolphintabbar.cpp
+ dolphinpackageinstaller.cpp
dolphinplacesmodelsingleton.cpp
dolphinrecenttabsmenu.cpp
dolphintabpage.cpp
@@ -334,6 +336,7 @@ target_sources(dolphinstatic PRIVATE
dolphincontextmenu.h
dolphinnavigatorswidgetaction.h
dolphintabbar.h
+ dolphinpackageinstaller.h
dolphinplacesmodelsingleton.h
dolphinrecenttabsmenu.h
dolphintabpage.h
@@ -459,6 +462,13 @@ if (HAVE_PLASMA_ACTIVITIES)
)
endif()
+if(HAVE_PACKAGEKIT)
+ target_link_libraries(
+ dolphinstatic
+ PK::packagekitqt6
+ )
+endif()
+
if (HAVE_KUSERFEEDBACK)
target_link_libraries(
dolphinstatic