fix OnlyShowIn issue (bz 1624651)

This commit is contained in:
Tom Callaway 2018-11-01 11:58:28 -04:00
parent f20013142e
commit 2f091f47ae
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,18 @@
diff -up pyxdg-0.26/xdg/Menu.py.fixOnlyShowIn pyxdg-0.26/xdg/Menu.py
--- pyxdg-0.26/xdg/Menu.py.fixOnlyShowIn 2018-11-01 11:34:26.222123436 -0400
+++ pyxdg-0.26/xdg/Menu.py 2018-11-01 11:36:39.459203908 -0400
@@ -298,11 +298,11 @@ class Menu:
entry.Show = NO_EXEC
self.Visible -= 1
elif xdg.Config.windowmanager:
- if (entry.DesktopEntry.OnlyShowIn != [] and (
- xdg.Config.windowmanager not in entry.DesktopEntry.OnlyShowIn
+ if (entry.DesktopEntry.getOnlyShowIn() != [] and (
+ xdg.Config.windowmanager not in entry.DesktopEntry.getOnlyShowIn()
)
) or (
- xdg.Config.windowmanager in entry.DesktopEntry.NotShowIn
+ xdg.Config.windowmanager in entry.DesktopEntry.getNotShowIn()
):
entry.Show = NOT_SHOW_IN
self.Visible -= 1

View File

@ -2,12 +2,13 @@
Name: pyxdg
Version: 0.26
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Python library to access freedesktop.org standards
Group: Development/Libraries
License: LGPLv2
URL: http://freedesktop.org/Software/pyxdg
Source0: https://pypi.python.org/packages/source/r/PyXDG/%{name}-%{version}.tar.gz
Patch0: pyxdg-0.26-fix-OnlyShowIn.patch
BuildArch: noarch
# These are needed for the nose tests.
BuildRequires: hicolor-icon-theme
@ -46,6 +47,7 @@ package contains a Python 3 version of PyXDG.
%prep
%setup -q
%patch0 -p1 -b .fixOnlyShowIn
%build
%py2_build
@ -85,6 +87,9 @@ nosetests-%{python3_version} || :
%endif #with_python3
%changelog
* Thu Nov 1 2018 Tom Callaway <spot@fedoraproject.org> - 0.26-2
- fix OnlyShowIn (bz 1624651)
* Mon Jul 23 2018 Tom Callaway <spot@fedoraproject.org> - 0.26-1
- update to 0.26