SHA256
1
0
forked from pool/python-xapp

Accepting request 503276 from X11:Cinnamon:Factory

OBS-URL: https://build.opensuse.org/request/show/503276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xapp?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-06-13 14:09:49 +00:00 committed by Git OBS Bridge
commit a3728bca41
5 changed files with 36 additions and 5 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

View File

@ -18,16 +18,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-xapp
Version: 1.0.0
Version: 1.0.1
Release: 0
Summary: Python XApp library
License: GPL-2.0+
Group: Development/Languages/Python
Url: https://github.com/linuxmint/python-xapp
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-rpm-macros
Requires: python-psutil
Requires: xdg-utils
BuildArch: noarch
%description
@ -38,6 +41,7 @@ desktop environments and required to implement cross-DE solutions.
%prep
%setup -q
%patch0 -p1
%build
%python_build
@ -49,6 +53,6 @@ desktop environments and required to implement cross-DE solutions.
%defattr(-,root,root)
%doc COPYING debian/changelog
%{python_sitelib}/xapp/
%{python_sitelib}/python_xapp-%{version}-*.egg-info
%{python_sitelib}/python_xapp-*.egg-info
%changelog