Bug 441467

Summary: kdesu obsolete? do we need it?
Product: [Applications] krusader Reporter: empyreal <empyreal>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: davide, krusader-bugs-null
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description empyreal 2021-08-24 07:04:46 UTC
https://docs.kde.org/stable5/en/kde-cli-tools/kdesu/kdesu.pdf [page 5]
/krusader/CMakeLists.txt
# For security reasons, absolute kdesu path is set at build time and is not
# configurable.
if(NOT KDESU_PATH)
    if(EXISTS "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
      # Used by Arch distribution
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
    else()
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBEXECDIR_KF5}/kdesu")
    endif()
endif()
Comment 1 Davide Gianforte 2021-08-24 17:28:11 UTC
Kdesu is needed to start Krusader in root mode and for operations with elevated privileges (the second ones are better than running the whole program as root).

It is set statically during compile (it can be overridden with -DKDESU_PATH if the distro does install in a different path) and it cannot be changed from configuration.