Cherry-picking upstream version 0.10.96~7-g29e3b89.

Alf Gaida 8 years ago
parent ffe04b93f9
commit c80cb0226e

1
.gitignore vendored

@ -1 +0,0 @@
build

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

@ -68,6 +68,16 @@ lxqt_translate_ts(lxqt-policykit-agent_QM_FILES
${lxqt-policykit-agent_UI}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
PULL_TRANSLATIONS
${PULL_TRANSLATIONS}
CLEAN_TRANSLATIONS
${CLEAN_TRANSLATIONS}
TRANSLATIONS_REPO
${TRANSLATIONS_REPO}
TRANSLATIONS_REFSPEC
${TRANSLATIONS_REFSPEC}
REPO_SUBDIR
"lxqt-policykit/${PROJECT_NAME}"
)
lxqt_app_translation_loader(QM_LOADER ${PROJECT_NAME})

@ -0,0 +1,75 @@
# lxqt-policykit
## Overview
lxqt-policykit is the polkit authentification agent of LXQt.
[polkit](https://www.freedesktop.org/wiki/Software/polkit/) is a software framework to handle privileges of processes.
In LXQt it is e. g. used to extend the privileges of the GUI tools of [lxqt-admin](https://github.com/lxde/lxqt-admin/).
These are launched by a regular user. But in order to apply the settings that can be adjusted root privileges are needed
and acquired via polkit.
Among the various components of polkit the authentication agent is the one to query the user for credentials and hence
comes with its own GUI like this one of lxqt-policykit.
![lxqt-policykit: GUI](lxqt-policykit_gui.png)
While there's only a single implementation of all other polkit components there are various different authentication
agents provided by the various desktop environments. Normally these can be used interchangeably, that is lxqt-policykit
can be used in an LXDE session or lxpolkit, the authentication agent of LXDE, can be used in an Xfce session. Normally
it's better to use the implementation provided by a distinct desktop environment as it integrates better, though.
Technically, lxqt-policykit is just a single binary `lxqt-policykit-agent` which has to be running all over the LXQt
sessions and is therefor launched as so-called LXQt Module, see [Configuration](#configuration).
Note that the naming lxqt-policykit is strictly speaking an anachronism. It refers to Policykit which was the predecessor
of polkit. The name wasn't changed when Policykit was replaced by polkit as both provide roughly the same features albeit
they are technically different.
## Installing
### Compiling sources
Runtime dependencies are [liblxqt](https://github.com/lxde/liblxqt) and its dependency
[libqtxdg](https://github.com/lxde/libqtxdg) as well as polkit-qt5, to build Git and CMake are needed in addition.
By default lxqt-policykit is pulling translations from repository [translations](https://github.com/lxde/translations/) at
compile time, see file README.md of the latter.
To compile, run `cmake`, `make` and `make install`.
`cmake` can be invoked in an out of source build directory and will normally need variable `-DCMAKE_INSTALL_PREFIX=/usr`.
`make install` can be invoked with `DESTDIR=<some path>`.
### Binary packages
#### Arch Linux
The latest release is provided by package `lxqt-policykit` in repository community, the actual master checkout can be
compiled by packages `lxqt-policykit-git` from the [AUR](https://aur.archlinux.org).
#### Debian
Package `lxqt-policykit` is available in the official repositories as of Debian stretch. For now it is comprising the
translations as well but these will probably be outsourced in package `lxqt-policykit-l10n` one day.
#### Fedora
Package `lxqt-policykit` is available as of Fedora 22.
#### openSUSE
Package `lxqt-policykit` is providing the binary, `lxqt-policykit-lang` the translations. Both are available as of
openSUSE Leap 42.1.
## Configuration
As mentioned in section [Overview](#overview) binary `lxqt-policykit-agent` is started as LXQt Module, which is a particular
way of LXQt to launch binaries at the beginning of an LXQt session and keep them running all the time.
This is handled by desktop entry file `/etc/xdg/autostart/lxqt-policykit-agent.desktop`. It belongs to
[lxqt-common](https://github.com/lxde/lxqt-common/) and is featuring key `OnlyShowIn=LXQt;` restricting it to LXQt sessions.
So no further action has to be taken as far as LXQt is concerned. In order to use lxqt-policykit in other sessions the key has
to be modified accordingly and/or removed, optionally after copying the file to a user specific directory, normally
`~/.config/autostart/`.
## Usage
From a user's point of view the usage is limited to interacting with the GUI as seen above.

5
debian/changelog vendored

@ -1,5 +1,6 @@
lxqt-policykit (0.10.0-4) unstable; urgency=medium
lxqt-policykit (0.10.96~7-g29e3b89-1) experimental; urgency=medium
* Cherry-picking upstream version 0.10.96~7-g29e3b89.
* Preparing the upcoming release, switch to experimental
* Added build dependency libqt5xdgiconloader-dev, set
minimum versions
@ -14,7 +15,7 @@ lxqt-policykit (0.10.0-4) unstable; urgency=medium
* Added README.md to docs
* Added manpages
-- Alf Gaida <agaida@siduction.org> Mon, 18 Jul 2016 00:24:10 +0200
-- Alf Gaida <agaida@siduction.org> Mon, 18 Jul 2016 00:42:38 +0200
lxqt-policykit (0.10.0-3) unstable; urgency=medium

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>PolicyKit Information</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation>Eine andere Authentisierung wird gerade durchgeführt. Bitte später noch einmal versuchen.</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Autorisierung fehlgeschlagen</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>Autorisierung aus irgendeinem Grund fehlgeschlagen</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>PolicyKit Fehler</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Authentisierung benötigt</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Identität:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Kennwort:</translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="el">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>Πληροφορίες PolicyKit</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation>Μια άλλη ταυτοποίηση είναι σε εξέλιξη. Παρακαλώ προσπαθήστε ξανά αργότερα.</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Η ταυτοποίηση απέτυχε</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>Η ταυτοποίηση για κάποια αιτία απέτυχε</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>Σφάλμα PolicyKit</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Απαιτείται ταυτοποίηση</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Ταυτότητα:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Κωδικός πρόσβασης:</translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>Policykit információ</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Hitelesítés sikertelen</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>Hitelesítés valami miatt sikertelen</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>Policykit hiba</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Hitelesítés kell</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Név:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Jelszó:</translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pt">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>Informaçoes PolicyKit</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Falha de autenticação</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>A autenticação falhou por alguma razão</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>Erro PolicyKit</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Requer autenticação</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Identidade:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Senha:</translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>Информация PolicyKit</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Авторизация не удалась</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>Авторизация не удалась по какой-то причине</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>Ошибка PolicyKit</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Требуется аутентификация</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Идентификация:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
</context>
</TS>

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
<context>
<name>LXQtPolicykit::PolicykitAgent</name>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<location filename="../src/policykitagent.cpp" line="149"/>
<source>PolicyKit Information</source>
<translation>Информация PolicyKit</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="71"/>
<source>Another authentization in progress. Please try it again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization Failed</source>
<translation>Авторизация не удалась</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="132"/>
<source>Authorization failed for some reason</source>
<translation>Авторизация не удалась по какой-то причине</translation>
</message>
<message>
<location filename="../src/policykitagent.cpp" line="144"/>
<source>PolicyKit Error</source>
<translation>Ошибка PolicyKit</translation>
</message>
</context>
<context>
<name>PolicykitAgentGUI</name>
<message>
<location filename="../src/policykitagentgui.ui" line="14"/>
<source>Authentication Required</source>
<translation>Требуется аутентификация</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="55"/>
<source>Identity:</source>
<translation>Идентификация:</translation>
</message>
<message>
<location filename="../src/policykitagentgui.ui" line="65"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
</context>
</TS>
Loading…
Cancel
Save