Cherry-picking upstream version 0.12.0.

ubuntu/cosmic
Alf Gaida 7 years ago
parent 41156d7486
commit 6bf89440ba

@ -4,7 +4,7 @@ Upstream Authors:
Copyright:
Copyright (c) 2010-2012 Razor team
Copyright (c) 2012-2016 LXQt team
Copyright (c) 2012-2017 LXQt team
License: LGPL-2.1+
The full text of the licenses can be found in the 'COPYING' file.

@ -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.
* 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")
find_package(PolkitQt5-1 REQUIRED)
find_package(Qt5LinguistTools REQUIRED QUIET)
find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5Widgets REQUIRED)
message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}")
message(STATUS "Building with Qt${Qt5Core_VERSION}")
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)
# Deal with a bug in polkit-qt5
@ -108,3 +118,7 @@ install(TARGETS
DESTINATION "${POLKIT_AGENT_BINARY_DIR}"
COMPONENT Runtime
)
# merged from lxqt-common
add_subdirectory(autostart)

@ -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
)

@ -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

@ -0,0 +1,2 @@
# Translations
Name[ar]=معالج وحدة السِّياسة بوليسي كيت

@ -0,0 +1,2 @@
# Translations
Name[cs]=Zacházení s politikami

@ -0,0 +1,2 @@
# Translations
Name[cs_CZ]=Zacházení s politikami

@ -0,0 +1,2 @@
# Translations
Name[da]=PolicyKit-håndtering

@ -0,0 +1,3 @@
# Translations
Name[de]=PolicyKit-Steuerung
Comment[de]=Authentifizierungsagent für PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[el]=Διαχειριστής PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[eo]=Traktilo de PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[es]=Manipulador de PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[es_VE]=Encargado del Kit de politicas

@ -0,0 +1,2 @@
# Translations
Name[eu]=PolicyKit maneiatzailea

@ -0,0 +1,2 @@
# Translations
Name[fi]=PolicyKit-käsittelijä

@ -0,0 +1,2 @@
# Translations
Name[fr]=Gestionnaire de PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[hu]=PolicyKit-kezelő

@ -0,0 +1,2 @@
# Translations
Name[it_IT]=Gestore di PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[ja]=PolicyKitハンドラ

@ -0,0 +1,2 @@
# Translations
Name[lt]=PolicyKit doroklė

@ -0,0 +1,2 @@
# Translations
Name[nl]=PolicyKit Handler

@ -0,0 +1,2 @@
# Translations
Name[pl_PL]=PolicyKit Handler

@ -0,0 +1,2 @@
# Translations
Name[pt]=Gestor de políticas

@ -0,0 +1,2 @@
# Translations
Name[pt_BR]=Manipulador PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[ru]= политики комплект Обработчик

@ -0,0 +1,2 @@
# Translations
Name[ru_RU]=Обработчик PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[sl]=Upravljalnik PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[th_TH]=ตัวจัดการ PolicyKit

@ -0,0 +1,2 @@
# Translations
Name[tr]=PolicyKit İşleyici

@ -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處理器

@ -6,13 +6,14 @@ lxqt-policykit-agent \- Polkit agent for \fBLXQt\fR: the faster and lighter QT D
[\fICurrently No command line arguments\fR]
.br
.SH DESCRIPTION
This module handles policykit for \fBLXQt\fR. The polkit module, will perform
security tast over scale action privilegies.
This module handles policykit for \fBLXQt\fR. The authentication agent is used to make the user of
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
The \fBLXQt modules\fR are desktop independent tools,
and operate as daemons for the local user for desktop specific operations.
The \fBLXQt modules\fR are desktop independent tools and operate as daemons
for the local user for desktop specific operations.
.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:
.P
* Panel
@ -24,26 +25,26 @@ technologies, ships several core desktop components, all of which are optional:
* Display manager handler
.P
These components perform similar actions to those available in other desktop
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
environments and their name is self-descriptive. They are usually not launched
by hand but automatically, when choosing a LXQt session in the Display
Manager.
.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.
.SH AUTOSTART
The module only are showed on \fBLXQt\fR desktop, but u can create an autostart action
for u preferred desktop environment.
The module is only shown in \fBLXQt\fR desktop, but one can create an autostart action
for other desktop environments.
.SH "REPORTING BUGS"
Report bugs to https://github.com/lxde/lxqt/issues
.SH "SEE ALSO"
\fBLXQt\fR it has been tailored for users who value simplicity, speed, and
an intuitive interface, also intended for less powerful machines. See:
\fBLXQt\fR has been tailored for users who value simplicity, speed and
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
.P
\fBlxqt-session.1\fR LXQt for manage LXQt complete environment
.P
\fBstart-lxqt.1\fR LXQt display management independient starup.
\fBstart-lxqt.1\fR LXQt display management independent startup.
.P
\fBlxqt-config-session.1\fR LXQt application for performing session autostart applications
.P

@ -31,6 +31,7 @@
#include <XdgIcon>
#include <LXQt/Settings>
#include <QCommandLineParser>
#include "policykitagent.h"
@ -41,9 +42,18 @@ int main(int argc, char *argv[])
#endif
LXQt::Application app(argc, argv);
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;
return app.exec();
}

Loading…
Cancel
Save