- Update to version 1.0.1.

OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/python-xapp?expand=0&rev=4
This commit is contained in:
Alexei Sorokin 2017-06-12 21:03:18 +00:00 committed by Git OBS Bridge
parent f3521dcc3f
commit 6ca0b66f71
5 changed files with 35 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b23af883b386706329fa955dbf8ef9c939084475be803160510df88437f9a600
size 11880

3
python-xapp-1.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da2ec46dc3fce97accd0ee6d9bd9d71d26c953b01de1a5336ba2b4b60f2f3b6b
size 12327

14
python-xapp-xdgsu.patch Normal file
View File

@ -0,0 +1,14 @@
--- a/xapp/os.py
+++ b/xapp/os.py
@@ -118,6 +118,11 @@ def run_with_admin_privs(command, messag
commands = commands + command
subprocess.Popen(commands)
return True
+ elif os.path.exists("/usr/bin/xdg-su"):
+ commands = ["xdg-su", "-c"]
+ commands = commands + command
+ subprocess.Popen(commands)
+ return True
# Finally use pkexec if we have nothing else - it will work, but the executed program
# may not be properly localized.
elif is_polkit_running():

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Jun 12 19:52:24 UTC 2017 - sor.alexei@meowr.ru
- Update to version 1.0.1:
* OS: Turn pkexec support into an opt-in and don't set
DISPLAY/XAUTHORITY.
* Add mate-polkit agent support.
* run_with_admin_privs: Use pkexec as a last ditch chance.
* Support polkit processname under Ubuntu 17.04.
* OS: Add is_guest_session() and is_live_session().
- Add python-xapp-xdgsu.patch: Escalate privileges using xdg-su.
- Add xdg-utils to requirements for xdg-su.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 4 17:44:11 UTC 2017 - sor.alexei@meowr.ru Wed May 4 17:44:11 UTC 2017 - sor.alexei@meowr.ru

View File

@ -18,16 +18,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-xapp Name: python-xapp
Version: 1.0.0 Version: 1.0.1
Release: 0 Release: 0
Summary: Python XApp library Summary: Python XApp library
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/linuxmint/python-xapp Url: https://github.com/linuxmint/python-xapp
Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE python-xapp-xdgsu.patch -- Escalate privileges using xdg-su.
Patch0: python-xapp-xdgsu.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-psutil Requires: python-psutil
Requires: xdg-utils
BuildArch: noarch BuildArch: noarch
%description %description
@ -38,6 +41,7 @@ desktop environments and required to implement cross-DE solutions.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%python_build %python_build