Commit d6ed46f0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new kauth includes

parent ec3346a5
Pipeline #142616 passed with stage
in 47 seconds
......@@ -23,8 +23,14 @@
#include "ctvariable.h"
// For root permissions
#include <kauth_version.h>
#if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0)
#include <KAuth/Action>
#include <KAuth/ExecuteJob>
#else
#include <KAuthAction>
#include <KAuthExecuteJob>
#endif
#include <pwd.h> // pwd, getpwnam(), getpwuid()
#include <unistd.h> // getuid(), unlink()
......
......@@ -23,8 +23,14 @@
* ======================================================================== */
#pragma once
#include <QObject>
#include <kauth_version.h>
#if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0)
#include <KAuth/ActionReply>
#include <KAuth/HelperSupport>
#else
#include <KAuth>
#endif
using namespace KAuth;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment