Cherry-picking upstream release 0.12.0.
* Switched to experimental * Bumped Standards to 4.1.1 - no changes needed * Bumped liblxqt dependency to >= 0.12.0 * Added Breaks/Replaces for lxqt-common << 0.12.0
This commit is contained in:
parent
41156d7486
commit
562621407e
2
AUTHORS
2
AUTHORS
@ -4,7 +4,7 @@ Upstream Authors:
|
|||||||
|
|
||||||
Copyright:
|
Copyright:
|
||||||
Copyright (c) 2010-2012 Razor team
|
Copyright (c) 2010-2012 Razor team
|
||||||
Copyright (c) 2012-2016 LXQt team
|
Copyright (c) 2012-2017 LXQt team
|
||||||
|
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
The full text of the licenses can be found in the 'COPYING' file.
|
The full text of the licenses can be found in the 'COPYING' file.
|
||||||
|
30
CHANGELOG
30
CHANGELOG
@ -1,7 +1,35 @@
|
|||||||
|
|
||||||
lxqt-policykit-0.11.1 / 2017-01-01
|
lxqt-policykit-0.12.0 / 2017-10-21
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
|
* Set patch version
|
||||||
|
* Don't export github templates
|
||||||
|
* Updated Lithuanian translation
|
||||||
|
* Drops Qt5Core_VERSION_STRING
|
||||||
|
* Added QCommandLineParser and basic cli interface to lxqt-policykit-agent
|
||||||
|
* Added default CMAKE_BUILD_TYPE and LXQT_POLKITAGENT_PATCH_VERSION
|
||||||
|
* Fixes a FTBFS in superbuild mode
|
||||||
|
* Added merged autostart to CMakeLists.txt
|
||||||
|
* Updated *_da.desktop files and removed *_da_DK.desktop files
|
||||||
|
* Update desktop entries and Replace fr_FR by fr
|
||||||
|
* Update Greek translation (el) Remove country variant from language code
|
||||||
|
* CMake: Adds Runtime and Devel install COMPONENTs
|
||||||
|
* Coding style changes
|
||||||
|
* Updates the build system to use the Targets infrastructure
|
||||||
|
* Drops hardcoded /etc/xdg paths
|
||||||
|
* Updated german translation, replaced Qt4 by Qt in all xsession/translations
|
||||||
|
* Updates translations infrastructure
|
||||||
|
* Update the required minimum cmake version
|
||||||
|
* remove dead template lines switch OnlyShowIn from Razor -> LXQt stringchanges LxQt -> LXQt
|
||||||
|
* Support lxqt-session and add necessary xdg autostart desktop entry files.
|
||||||
|
* Fix typo and correct some sentences
|
||||||
|
* Fixed some more typos
|
||||||
|
* Bump year
|
||||||
|
|
||||||
|
0.11.1 / 2017-01-01
|
||||||
|
===================
|
||||||
|
|
||||||
|
* Release 0.11.1: Update changelog
|
||||||
* Make CMakeLists.txt more uniform.
|
* Make CMakeLists.txt more uniform.
|
||||||
* Remove cpack (#25)
|
* Remove cpack (#25)
|
||||||
|
|
||||||
|
@ -18,12 +18,22 @@ message(STATUS "polkit agent: ${POLKIT_AGENT_INCLUDE_DIRS} ${POLKIT_AGENT_LIBRAR
|
|||||||
set(POLKIT_AGENT_BINARY_DIR "${CMAKE_INSTALL_BINDIR}" CACHE FILEPATH "Directory for install polkit agent")
|
set(POLKIT_AGENT_BINARY_DIR "${CMAKE_INSTALL_BINDIR}" CACHE FILEPATH "Directory for install polkit agent")
|
||||||
|
|
||||||
find_package(PolkitQt5-1 REQUIRED)
|
find_package(PolkitQt5-1 REQUIRED)
|
||||||
find_package(Qt5LinguistTools REQUIRED QUIET)
|
find_package(Qt5LinguistTools REQUIRED)
|
||||||
find_package(Qt5Widgets REQUIRED)
|
find_package(Qt5Widgets REQUIRED)
|
||||||
message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}")
|
message(STATUS "Building with Qt${Qt5Core_VERSION}")
|
||||||
|
|
||||||
find_package(lxqt REQUIRED)
|
find_package(lxqt REQUIRED)
|
||||||
|
|
||||||
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Patch Version
|
||||||
|
set(LXQT_POLKITAGENT_PATCH_VERSION 0)
|
||||||
|
|
||||||
|
set(LXQT_POLKITAGENT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_POLKITAGENT_PATCH_VERSION})
|
||||||
|
add_definitions("-DLXQT_POLKITAGENT_VERSION=\"${LXQT_POLKITAGENT_VERSION}\"")
|
||||||
|
|
||||||
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
||||||
|
|
||||||
# Deal with a bug in polkit-qt5
|
# Deal with a bug in polkit-qt5
|
||||||
@ -108,3 +118,7 @@ install(TARGETS
|
|||||||
DESTINATION "${POLKIT_AGENT_BINARY_DIR}"
|
DESTINATION "${POLKIT_AGENT_BINARY_DIR}"
|
||||||
COMPONENT Runtime
|
COMPONENT Runtime
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# merged from lxqt-common
|
||||||
|
add_subdirectory(autostart)
|
||||||
|
|
||||||
|
17
autostart/CMakeLists.txt
Normal file
17
autostart/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||||
|
|
||||||
|
file(GLOB DESKTOP_FILES_IN *.desktop.in)
|
||||||
|
|
||||||
|
# Translations **********************************
|
||||||
|
lxqt_translate_desktop(DESKTOP_FILES
|
||||||
|
SOURCES
|
||||||
|
${DESKTOP_FILES_IN}
|
||||||
|
)
|
||||||
|
add_custom_target(lxqt_policykit_autostart_desktop_files ALL DEPENDS ${DESKTOP_FILES})
|
||||||
|
#************************************************
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${DESKTOP_FILES}
|
||||||
|
DESTINATION "${LXQT_ETC_XDG_DIR}/autostart"
|
||||||
|
COMPONENT Runtime
|
||||||
|
)
|
9
autostart/lxqt-policykit-agent.desktop.in
Normal file
9
autostart/lxqt-policykit-agent.desktop.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=PolicyKit Handler
|
||||||
|
TryExec=lxqt-policykit-agent
|
||||||
|
Exec=lxqt-policykit-agent
|
||||||
|
OnlyShowIn=LXQt;
|
||||||
|
X-LXQt-Module=true
|
||||||
|
|
||||||
|
#TRANSLATIONS_DIR=translations
|
2
autostart/translations/lxqt-policykit-agent_ar.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_ar.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[ar]=معالج وحدة السِّياسة بوليسي كيت
|
2
autostart/translations/lxqt-policykit-agent_cs.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_cs.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[cs]=Zacházení s politikami
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[cs_CZ]=Zacházení s politikami
|
2
autostart/translations/lxqt-policykit-agent_da.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_da.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[da]=PolicyKit-håndtering
|
3
autostart/translations/lxqt-policykit-agent_de.desktop
Normal file
3
autostart/translations/lxqt-policykit-agent_de.desktop
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Translations
|
||||||
|
Name[de]=PolicyKit-Steuerung
|
||||||
|
Comment[de]=Authentifizierungsagent für PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_el.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_el.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[el]=Διαχειριστής PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_eo.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_eo.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[eo]=Traktilo de PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_es.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_es.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[es]=Manipulador de PolicyKit
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[es_VE]=Encargado del Kit de politicas
|
2
autostart/translations/lxqt-policykit-agent_eu.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_eu.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[eu]=PolicyKit maneiatzailea
|
2
autostart/translations/lxqt-policykit-agent_fi.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_fi.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[fi]=PolicyKit-käsittelijä
|
2
autostart/translations/lxqt-policykit-agent_fr.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_fr.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[fr]=Gestionnaire de PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_hu.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_hu.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[hu]=PolicyKit-kezelő
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[it_IT]=Gestore di PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_ja.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_ja.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[ja]=PolicyKitハンドラ
|
2
autostart/translations/lxqt-policykit-agent_lt.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_lt.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[lt]=PolicyKit doroklė
|
2
autostart/translations/lxqt-policykit-agent_nl.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_nl.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[nl]=PolicyKit Handler
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[pl_PL]=PolicyKit Handler
|
2
autostart/translations/lxqt-policykit-agent_pt.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_pt.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[pt]=Gestor de políticas
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[pt_BR]=Manipulador PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_ru.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_ru.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[ru]= политики комплект Обработчик
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[ru_RU]=Обработчик PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_sl.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_sl.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[sl]=Upravljalnik PolicyKit
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[th_TH]=ตัวจัดการ PolicyKit
|
2
autostart/translations/lxqt-policykit-agent_tr.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_tr.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[tr]=PolicyKit İşleyici
|
2
autostart/translations/lxqt-policykit-agent_uk.desktop
Normal file
2
autostart/translations/lxqt-policykit-agent_uk.desktop
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[uk]=Маніпулятор PolicyKit
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[zh_CN]=PolicyKit 处理器
|
@ -0,0 +1,2 @@
|
|||||||
|
# Translations
|
||||||
|
Name[zh_TW]=PolicyKit處理器
|
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,3 +1,13 @@
|
|||||||
|
lxqt-policykit (0.12.0-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Cherry-picking upstream release 0.12.0.
|
||||||
|
* Switched to experimental
|
||||||
|
* Bumped Standards to 4.1.1 - no changes needed
|
||||||
|
* Bumped liblxqt dependency to >= 0.12.0
|
||||||
|
* Added Breaks/Replaces for lxqt-common << 0.12.0
|
||||||
|
|
||||||
|
-- Alf Gaida <agaida@siduction.org> Tue, 24 Oct 2017 18:56:53 +0200
|
||||||
|
|
||||||
lxqt-policykit (0.11.1-2) unstable; urgency=medium
|
lxqt-policykit (0.11.1-2) unstable; urgency=medium
|
||||||
|
|
||||||
* Bump Standards to 4.0.0 - no changes needed
|
* Bump Standards to 4.0.0 - no changes needed
|
||||||
|
10
debian/control
vendored
10
debian/control
vendored
@ -8,15 +8,15 @@ Section: x11
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 10),
|
Build-Depends: debhelper (>= 10),
|
||||||
libkf5windowsystem-dev,
|
libkf5windowsystem-dev,
|
||||||
liblxqt0-dev (>= 0.11.1),
|
liblxqt0-dev (>= 0.12.0),
|
||||||
libpolkit-agent-1-dev,
|
libpolkit-agent-1-dev,
|
||||||
libpolkit-qt5-1-dev,
|
libpolkit-qt5-1-dev,
|
||||||
libqt5svg5-dev,
|
libqt5svg5-dev,
|
||||||
libqt5x11extras5-dev,
|
libqt5x11extras5-dev,
|
||||||
libx11-dev
|
libx11-dev
|
||||||
Standards-Version: 4.0.0
|
Standards-Version: 4.1.1
|
||||||
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-lxqt/lxqt-policykit.git/?h=debian/sid
|
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-lxqt/lxqt-policykit.git/?h=debian/experimental
|
||||||
Vcs-Git: https://anonscm.debian.org/git/pkg-lxqt/lxqt-policykit.git -b debian/sid
|
Vcs-Git: https://anonscm.debian.org/git/pkg-lxqt/lxqt-policykit.git -b debian/experimental
|
||||||
Homepage: https://github.com/lxde/lxqt-policykit
|
Homepage: https://github.com/lxde/lxqt-policykit
|
||||||
|
|
||||||
Package: lxqt-policykit
|
Package: lxqt-policykit
|
||||||
@ -26,6 +26,8 @@ Depends: ${misc:Depends},
|
|||||||
lxqt-session
|
lxqt-session
|
||||||
Recommends: lxqt-policykit-l10n
|
Recommends: lxqt-policykit-l10n
|
||||||
Suggests: lxqt | lxqt-core
|
Suggests: lxqt | lxqt-core
|
||||||
|
Breaks: lxqt-common (<< 0.12.0)
|
||||||
|
Replaces: lxqt-common (<< 0.12.0)
|
||||||
Provides: polkit-1-auth-agent
|
Provides: polkit-1-auth-agent
|
||||||
Description: LXQt authentication agent for PolicyKit
|
Description: LXQt authentication agent for PolicyKit
|
||||||
The lxqt-policykit D-Bus session bus service that is used to
|
The lxqt-policykit D-Bus session bus service that is used to
|
||||||
|
@ -6,13 +6,14 @@ lxqt-policykit-agent \- Polkit agent for \fBLXQt\fR: the faster and lighter QT D
|
|||||||
[\fICurrently No command line arguments\fR]
|
[\fICurrently No command line arguments\fR]
|
||||||
.br
|
.br
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This module handles policykit for \fBLXQt\fR. The polkit module, will perform
|
This module handles policykit for \fBLXQt\fR. The authentication agent is used to make the user of
|
||||||
security tast over scale action privilegies.
|
a session prove that the user of the session really is the user (by authenticating as the user) or
|
||||||
|
an administrative user (by authenticating as a administrator).
|
||||||
.P
|
.P
|
||||||
The \fBLXQt modules\fR are desktop independent tools,
|
The \fBLXQt modules\fR are desktop independent tools and operate as daemons
|
||||||
and operate as daemons for the local user for desktop specific operations.
|
for the local user for desktop specific operations.
|
||||||
.P
|
.P
|
||||||
\fBLXQt\fR is an advanced, easy-to-use, and fast desktop environment based on Qt
|
\fBLXQt\fR is an advanced, easy-to-use and fast desktop environment based on Qt
|
||||||
technologies, ships several core desktop components, all of which are optional:
|
technologies, ships several core desktop components, all of which are optional:
|
||||||
.P
|
.P
|
||||||
* Panel
|
* Panel
|
||||||
@ -24,26 +25,26 @@ technologies, ships several core desktop components, all of which are optional:
|
|||||||
* Display manager handler
|
* Display manager handler
|
||||||
.P
|
.P
|
||||||
These components perform similar actions to those available in other desktop
|
These components perform similar actions to those available in other desktop
|
||||||
environments, and their name is self-descriptive. They are usually not launched
|
environments and their name is self-descriptive. They are usually not launched
|
||||||
by hand but automatically, when choosing a LXQt\-Qt session in the Display
|
by hand but automatically, when choosing a LXQt session in the Display
|
||||||
Manager.
|
Manager.
|
||||||
.SH BEHAVIOR
|
.SH BEHAVIOR
|
||||||
The module detected on shares privilege escalation, and maintain a security dialog
|
The module detected on shares privilege escalation and maintain a security dialog
|
||||||
that ask for the user's key need for action.
|
that ask for the user's key need for action.
|
||||||
.SH AUTOSTART
|
.SH AUTOSTART
|
||||||
The module only are showed on \fBLXQt\fR desktop, but u can create an autostart action
|
The module is only shown in \fBLXQt\fR desktop, but one can create an autostart action
|
||||||
for u preferred desktop environment.
|
for other desktop environments.
|
||||||
.SH "REPORTING BUGS"
|
.SH "REPORTING BUGS"
|
||||||
Report bugs to https://github.com/lxde/lxqt/issues
|
Report bugs to https://github.com/lxde/lxqt/issues
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
\fBLXQt\fR it has been tailored for users who value simplicity, speed, and
|
\fBLXQt\fR has been tailored for users who value simplicity, speed and
|
||||||
an intuitive interface, also intended for less powerful machines. See:
|
an intuitive interface, it's also intended for less powerful machines. See:
|
||||||
|
|
||||||
.\" any module must refers to session app, for more info on start it
|
.\" any module must refers to session app, for more info on start it
|
||||||
.P
|
.P
|
||||||
\fBlxqt-session.1\fR LXQt for manage LXQt complete environment
|
\fBlxqt-session.1\fR LXQt for manage LXQt complete environment
|
||||||
.P
|
.P
|
||||||
\fBstart-lxqt.1\fR LXQt display management independient starup.
|
\fBstart-lxqt.1\fR LXQt display management independent startup.
|
||||||
.P
|
.P
|
||||||
\fBlxqt-config-session.1\fR LXQt application for performing session autostart applications
|
\fBlxqt-config-session.1\fR LXQt application for performing session autostart applications
|
||||||
.P
|
.P
|
||||||
|
12
src/main.cpp
12
src/main.cpp
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <XdgIcon>
|
#include <XdgIcon>
|
||||||
#include <LXQt/Settings>
|
#include <LXQt/Settings>
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
#include "policykitagent.h"
|
#include "policykitagent.h"
|
||||||
|
|
||||||
@ -41,9 +42,18 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
LXQt::Application app(argc, argv);
|
LXQt::Application app(argc, argv);
|
||||||
|
|
||||||
app.setQuitOnLastWindowClosed(false);
|
app.setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
|
QCommandLineParser parser;
|
||||||
|
parser.setApplicationDescription(QStringLiteral("LXQt Policykit Agent"));
|
||||||
|
const QString VERINFO = QStringLiteral(LXQT_POLKITAGENT_VERSION
|
||||||
|
"\nliblxqt " LXQT_VERSION
|
||||||
|
"\nQt " QT_VERSION_STR);
|
||||||
|
app.setApplicationVersion(VERINFO);
|
||||||
|
parser.addVersionOption();
|
||||||
|
parser.addHelpOption();
|
||||||
|
parser.process(app);
|
||||||
|
|
||||||
LXQtPolicykit::PolicykitAgent agent;
|
LXQtPolicykit::PolicykitAgent agent;
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user