!12 Add upstream patch to fix command history segmentation fault
From: @misaka00251 Reviewed-by: @zhang__3125 Signed-off-by: @zhang__3125
This commit is contained in:
commit
4955005381
13
use-correct-model-when-running-from-commands-history.patch
Normal file
13
use-correct-model-when-running-from-commands-history.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/appfinder-window.c b/src/appfinder-window.c
|
||||||
|
index 0c39c176fb9bd699a451b2df2c2dcd67ed327858..e4c2a139a153baecb3c7f11d9fff8821bc743ed2 100644
|
||||||
|
--- a/src/appfinder-window.c
|
||||||
|
+++ b/src/appfinder-window.c
|
||||||
|
@@ -1925,7 +1925,7 @@ xfce_appfinder_window_execute (XfceAppfinderWindow *window,
|
||||||
|
xfce_appfinder_window_update_frecency (window, model, uri);
|
||||||
|
if (!result && regular_command)
|
||||||
|
{
|
||||||
|
- gtk_tree_model_get (model, &child_iter, XFCE_APPFINDER_MODEL_COLUMN_COMMAND, &cmd, -1);
|
||||||
|
+ gtk_tree_model_get (GTK_TREE_MODEL (window->model), &child_iter, XFCE_APPFINDER_MODEL_COLUMN_COMMAND, &cmd, -1);
|
||||||
|
result = xfce_appfinder_window_execute_command (cmd, screen, window, FALSE, NULL, &error);
|
||||||
|
g_free (cmd);
|
||||||
|
}
|
||||||
@ -2,13 +2,15 @@
|
|||||||
|
|
||||||
Name: xfce4-appfinder
|
Name: xfce4-appfinder
|
||||||
Version: 4.18.0
|
Version: 4.18.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Appfinder for the Xfce4 Desktop Environment
|
Summary: Appfinder for the Xfce4 Desktop Environment
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.xfce.org/
|
URL: http://www.xfce.org/
|
||||||
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
|
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
|
Patch0: use-correct-model-when-running-from-commands-history.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig(dbus-glib-1) >= 0.84
|
BuildRequires: pkgconfig(dbus-glib-1) >= 0.84
|
||||||
@ -27,6 +29,7 @@ xfce-appfinder shows system wide installed applications.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
# fix icon problems - GTK-3.10+
|
# fix icon problems - GTK-3.10+
|
||||||
sed -i 's/gtk-find/edit-find/g' data/xfce4-appfinder.desktop.in
|
sed -i 's/gtk-find/edit-find/g' data/xfce4-appfinder.desktop.in
|
||||||
@ -59,6 +62,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.xfce.%{nam
|
|||||||
%{_metainfodir}/org.xfce.%{name}.appdata.xml
|
%{_metainfodir}/org.xfce.%{name}.appdata.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 13 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-2
|
||||||
|
- Add upstream patch to fix command history segmentation fault
|
||||||
|
|
||||||
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-1
|
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-1
|
||||||
- Update to 4.18.0
|
- Update to 4.18.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user