From 676e09ad28b28fc8308aaaef26d55ce8cc5b097b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= Date: Thu, 19 Oct 2023 15:39:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=92=8C=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0002-remove-some-files.patch | 840 +++++++++++++++++++++++++++++++++++ found-control-center.spec | 8 +- 2 files changed, 847 insertions(+), 1 deletion(-) create mode 100644 0002-remove-some-files.patch diff --git a/0002-remove-some-files.patch b/0002-remove-some-files.patch new file mode 100644 index 0000000..35bf1a8 --- /dev/null +++ b/0002-remove-some-files.patch @@ -0,0 +1,840 @@ +From e31d7e7ae52d62c58a18c30638670b144231e7a5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= +Date: Thu, 19 Oct 2023 14:39:39 +0800 +Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= + =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=92=8C=E4=BB=A3=E7=A0=81?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + panels/meson.build | 1 - + .../cc-performance-mode-panel.c | 255 ------------------ + .../cc-performance-mode-panel.h | 29 -- + .../cc-performance-mode-panel.ui | 192 ------------- + ...found-performance-mode-panel.desktop.in.in | 22 -- + panels/performance-mode/meson.build | 53 ---- + panels/performance-mode/perf.css | 5 - + .../performance-mode.gresource.xml | 9 - + panels/performance-mode/performance-mode.png | Bin 2936 -> 0 bytes + panels/performance-mode/standard-mode.png | Bin 3692 -> 0 bytes + shell/cc-panel-list.c | 18 -- + shell/cc-panel-loader.c | 2 - + 12 files changed, 586 deletions(-) + delete mode 100755 panels/performance-mode/cc-performance-mode-panel.c + delete mode 100644 panels/performance-mode/cc-performance-mode-panel.h + delete mode 100755 panels/performance-mode/cc-performance-mode-panel.ui + delete mode 100644 panels/performance-mode/found-performance-mode-panel.desktop.in.in + delete mode 100644 panels/performance-mode/meson.build + delete mode 100755 panels/performance-mode/perf.css + delete mode 100644 panels/performance-mode/performance-mode.gresource.xml + delete mode 100644 panels/performance-mode/performance-mode.png + delete mode 100644 panels/performance-mode/standard-mode.png + +diff --git a/panels/meson.build b/panels/meson.build +index 97f2312..9a3a98e 100644 +--- a/panels/meson.build ++++ b/panels/meson.build +@@ -9,7 +9,6 @@ panels = [ + # 'color', + 'datetime', + 'default-apps', +- 'performance-mode', + 'diagnostics', + 'display', + 'info-contact', +diff --git a/panels/performance-mode/cc-performance-mode-panel.c b/panels/performance-mode/cc-performance-mode-panel.c +deleted file mode 100755 +index 7b51004..0000000 +--- a/panels/performance-mode/cc-performance-mode-panel.c ++++ /dev/null +@@ -1,255 +0,0 @@ +-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- +- * +- * Copyright (C) 2019 Purism SPC +- * Copyright (C) 2017 Mohammed Sadiq +- * Copyright (C) 2010 Red Hat, Inc +- * Copyright (C) 2008 William Jon McCann +- * +- * This program is free software; you can redistribute it and/or modify +- * it under the terms of the GNU General Public License as published by +- * the Free Software Foundation; either version 2 of the License, or +- * (at your option) any later version. +- * +- * This program is distributed in the hope that it will be useful, +- * but WITHOUT ANY WARRANTY; without even the implied warranty of +- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +- * GNU General Public License for more details. +- * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, see . +- * +- */ +- +-#include +- +-#include +-#include +-#include "cc-util.h" +- +-#include "cc-performance-mode-panel.h" +-#include "cc-performance-mode-resources.h" +-#define SUPPORT_KEY "support-performance-mode" +-#define DESKTOP_SESSION_SCHEMA "org.cdos.desktop.session" +-#define PERFORMANCE_MODE "cdos-2d" +-#define ORIGINAL_MODE "lightdm-xsession" +- +-struct _CcPerformanceModePanel +-{ +- CcPanel parent_instance; +- +- GtkLabel *attention_lab; +- GtkSwitch *switch_btn; +- +- gboolean button_state; +- GDBusProxy *account_proxy; +- GDBusProxy *account_user_proxy; +- gchar *user_path; +- +-}; +- +-G_DEFINE_TYPE (CcPerformanceModePanel, cc_performance_mode_panel, CC_TYPE_PANEL) +- +- +-static void +-performance_call_dbus_method ( CcPerformanceModePanel *self, gchar *session_type) +-{ +- g_autoptr(GDBusProxy) user_proxy = NULL; +- g_autoptr(GError) error = NULL; +- g_autoptr(GVariant) res = NULL; +- user_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, +- G_DBUS_PROXY_FLAGS_NONE, +- NULL, +- "org.freedesktop.Accounts", +- self->user_path, +- "org.freedesktop.Accounts.User", +- NULL, +- &error); +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- return; +- } +- res = g_dbus_proxy_call_sync (user_proxy, +- "SetXSession", +- g_variant_new ("(s)", +- session_type), +- G_DBUS_CALL_FLAGS_NONE, +- -1, +- NULL, +- &error); +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- return; +- } +-} +- +-static void +-switch_changed_cb (CcPerformanceModePanel *self) +-{ +- gboolean state; +- state = gtk_switch_get_active (self->switch_btn); +- if (state) +- { +- performance_call_dbus_method(self, PERFORMANCE_MODE); +- } +- else +- { +- performance_call_dbus_method(self, ORIGINAL_MODE); +- } +- self->button_state = state; +- gtk_label_set_text (self->attention_lab, _("Attention: change setting need logout or restart")); +-} +- +-static void +-cc_performance_mode_panel_finalize (GObject *object) +-{ +- CcPerformanceModePanel *self = CC_PERFORMANCE_MODE_PANEL (object); +- g_free (self->user_path); +- G_OBJECT_CLASS (cc_performance_mode_panel_parent_class)->finalize (object); +-} +- +-static void +-cc_performance_mode_panel_dispose (GObject *object) +-{ +- CcPerformanceModePanel *self = CC_PERFORMANCE_MODE_PANEL (object); +- g_clear_object (&self->account_proxy); +- g_clear_object (&self->account_user_proxy); +- G_OBJECT_CLASS (cc_performance_mode_panel_parent_class)->dispose (object); +-} +- +-static void +-cc_performance_mode_panel_class_init (CcPerformanceModePanelClass *klass) +-{ +- GObjectClass *object_class = G_OBJECT_CLASS (klass); +- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); +- +- object_class->finalize = cc_performance_mode_panel_finalize; +- object_class->dispose = cc_performance_mode_panel_dispose; +- +- gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/performance-mode/cc-performance-mode-panel.ui"); +- +- gtk_widget_class_bind_template_child (widget_class, CcPerformanceModePanel, attention_lab); +- gtk_widget_class_bind_template_child (widget_class, CcPerformanceModePanel, switch_btn); +- +- gtk_widget_class_bind_template_callback (widget_class, switch_changed_cb); +- +-} +- +-static void +-load_custom_css (CcPerformanceModePanel *self) +-{ +- g_autoptr(GtkCssProvider) provider = NULL; +- +- provider = gtk_css_provider_new (); +- gtk_css_provider_load_from_resource (provider, "/org/gnome/control-center/performance-mode/perf.css"); +- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (), +- GTK_STYLE_PROVIDER (provider), +- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +-} +- +-static void +-cc_performance_mode_panel_init (CcPerformanceModePanel *self) +-{ +- g_resources_register (cc_performance_mode_get_resource ()); +- load_custom_css (self); +- gtk_widget_init_template (GTK_WIDGET (self)); +- +- g_autoptr(GError) error = NULL; +- g_autoptr(GVariant) res = NULL; +- g_autoptr(GVariant) res_session = NULL; +- +- g_autoptr(GVariant) inner = NULL; +- g_autoptr(GCancellable) cancellable = NULL; +- g_autoptr(GSettings) session_support_settings = NULL; +- +- const gchar *opath = NULL; +- const gchar *user_name = NULL; +- const gchar *user_session = NULL; +- gboolean support_enabled = FALSE; +- +- user_name = g_get_user_name(); +- cancellable = g_cancellable_new (); +- self->account_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, +- G_DBUS_PROXY_FLAGS_NONE, +- NULL, +- "org.freedesktop.Accounts", +- "/org/freedesktop/Accounts", +- "org.freedesktop.Accounts", +- cancellable, +- &error); +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- goto out; +- } +- g_cancellable_reset (cancellable); +- res = g_dbus_proxy_call_sync (self->account_proxy, +- "FindUserByName", +- g_variant_new ("(s)", +- user_name), +- G_DBUS_CALL_FLAGS_NONE, +- -1, +- cancellable, +- &error); +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- goto out; +- } +- +- g_variant_get (res, "(o)", &opath); +- +- self->user_path = g_strdup (opath); +- +- self->account_user_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, +- G_DBUS_PROXY_FLAGS_NONE, +- NULL, +- "org.freedesktop.Accounts", +- self->user_path, +- "org.freedesktop.DBus.Properties", +- NULL, +- &error); +- +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- goto out; +- } +- res_session= g_dbus_proxy_call_sync (self->account_user_proxy, +- "Get", +- g_variant_new ("(ss)", +- "org.freedesktop.Accounts.User", +- "XSession"), +- G_DBUS_CALL_FLAGS_NONE, +- -1, +- NULL, +- &error); +- if (error != NULL) +- { +- g_warning ("%s", error->message); +- goto out; +- } +- g_variant_get (res_session, "(v)", &inner); +- user_session = g_variant_get_string (inner, NULL); +- +- if (g_strcmp0(user_session, PERFORMANCE_MODE) == 0) +- { +- self->button_state = TRUE; +- } +- else{ +- self->button_state = FALSE; +- } +- gtk_switch_set_active (self->switch_btn , self->button_state); +- +- out: +- session_support_settings = g_settings_new (DESKTOP_SESSION_SCHEMA); +- if (g_settings_has_key (session_support_settings, SUPPORT_KEY)) +- support_enabled = g_settings_get_boolean (session_support_settings, SUPPORT_KEY); +- if (support_enabled == FALSE) +- { +- gtk_widget_set_sensitive (GTK_WIDGET (self->switch_btn), FALSE); +- } +- +-} +- +diff --git a/panels/performance-mode/cc-performance-mode-panel.h b/panels/performance-mode/cc-performance-mode-panel.h +deleted file mode 100644 +index c9be6f4..0000000 +--- a/panels/performance-mode/cc-performance-mode-panel.h ++++ /dev/null +@@ -1,29 +0,0 @@ +-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- +- * +- * Copyright (C) 2017 Mohammed Sadiq +- * +- * This program is free software; you can redistribute it and/or modify +- * it under the terms of the GNU General Public License as published by +- * the Free Software Foundation; either version 2 of the License, or +- * (at your option) any later version. +- * +- * This program is distributed in the hope that it will be useful, +- * but WITHOUT ANY WARRANTY; without even the implied warranty of +- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +- * GNU General Public License for more details. +- * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, see . +- * +- */ +- +-#pragma once +- +-#include +- +-G_BEGIN_DECLS +- +-#define CC_TYPE_PERFORMANCE_MODE_PANEL (cc_performance_mode_panel_get_type ()) +-G_DECLARE_FINAL_TYPE (CcPerformanceModePanel, cc_performance_mode_panel, CC, PERFORMANCE_MODE_PANEL, CcPanel) +- +-G_END_DECLS +diff --git a/panels/performance-mode/cc-performance-mode-panel.ui b/panels/performance-mode/cc-performance-mode-panel.ui +deleted file mode 100755 +index 00f447f..0000000 +--- a/panels/performance-mode/cc-performance-mode-panel.ui ++++ /dev/null +@@ -1,192 +0,0 @@ +- +- +- +- +- +- +diff --git a/panels/performance-mode/found-performance-mode-panel.desktop.in.in b/panels/performance-mode/found-performance-mode-panel.desktop.in.in +deleted file mode 100644 +index 14ac67f..0000000 +--- a/panels/performance-mode/found-performance-mode-panel.desktop.in.in ++++ /dev/null +@@ -1,22 +0,0 @@ +-[Desktop Entry] +-Name=Performance mode +-Comment=change desktop components for speed up +-Exec=found-control-center performance-mode +-# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +-Icon=performance-symbolic +-Terminal=false +-Type=Application +-NoDisplay=true +-StartupNotify=true +-Categories=GNOME;GTK;Settings;X-GNOME-Settings-Panel;X-GNOME-DetailsSettings; +-OnlyShowIn=GNOME;Unity; +-X-GNOME-Bugzilla-Bugzilla=GNOME +-X-GNOME-Bugzilla-Product=gnome-control-center +-X-GNOME-Bugzilla-Component=performance +-X-GNOME-Bugzilla-Version=@VERSION@ +-# Translators: Search terms to find the About panel. +-# Do NOT translate or localize the semicolons! +-# The list MUST also end with a semicolon! +-# "Preferred Applications" is the old name for the preference, so make +-# sure that you use the same "translation" for those keywords +-Keywords=default;application;preferred;media; +diff --git a/panels/performance-mode/meson.build b/panels/performance-mode/meson.build +deleted file mode 100644 +index 1501513..0000000 +--- a/panels/performance-mode/meson.build ++++ /dev/null +@@ -1,53 +0,0 @@ +-panels_list += cappletname +-desktop = 'found-@0@-panel.desktop'.format(cappletname) +- +-desktop_in = configure_file( +- input: desktop + '.in.in', +- output: desktop + '.in', +- configuration: desktop_conf +-) +- +-i18n.merge_file( +- type: 'desktop', +- input: desktop_in, +- output: desktop, +- po_dir: po_dir, +- install: true, +- install_dir: control_center_desktopdir +-) +- +-sources = files( +- 'cc-performance-mode-panel.c' +-) +- +-resource_data = files( +- 'cc-performance-mode-panel.ui' +-) +- +-pixmap_dir = join_paths(control_center_datadir, 'pixmaps') +- +-install_data( +- 'standard-mode.png', +- 'performance-mode.png', +- install_dir: pixmap_dir +-) +- +-sources += gnome.compile_resources( +- 'cc-' + cappletname + '-resources', +- cappletname + '.gresource.xml', +- c_name: 'cc_' + cappletname.underscorify (), +- dependencies: resource_data, +- export: true +-) +- +-deps = common_deps + [ +- dependency('libgtop-2.0'), +-] +- +-panels_libs += static_library( +- cappletname, +- sources: sources, +- include_directories: [ top_inc, common_inc ], +- dependencies: deps, +- c_args: cflags +-) +diff --git a/panels/performance-mode/perf.css b/panels/performance-mode/perf.css +deleted file mode 100755 +index 0b9a2f1..0000000 +--- a/panels/performance-mode/perf.css ++++ /dev/null +@@ -1,5 +0,0 @@ +-.performance_title { +- font-weight: bold; +- color: @theme_fg_color; +-} +- +diff --git a/panels/performance-mode/performance-mode.gresource.xml b/panels/performance-mode/performance-mode.gresource.xml +deleted file mode 100644 +index 75a65f0..0000000 +--- a/panels/performance-mode/performance-mode.gresource.xml ++++ /dev/null +@@ -1,9 +0,0 @@ +- +- +- +- cc-performance-mode-panel.ui +- performance-mode.png +- standard-mode.png +- perf.css +- +- +diff --git a/panels/performance-mode/performance-mode.png b/panels/performance-mode/performance-mode.png +deleted file mode 100644 +index b9c8f3c36f128246ad5763f34e89054ca3997db0..0000000000000000000000000000000000000000 +GIT binary patch +literal 0 +HcmV?d00001 + +literal 2936 +zcmcImeLT}^8(-^x-mvA{rk65g6PM07_xgLIH1p +z#)yf!2RMR28s;otf1y9s9Z%=75wyh^gqY1!qd_1?7cq}Uj{tL|vm3D|&;1{Jd-IRd=c3I356ul5(W +zk#Ok85MhK9{4Y`d)SXZwmk&T~5q4H|w2dtki$kF8tZi_(%}@*qZI49RBhl7YXgj%i_a>1)c({Uur;^alRc`#*^VzA-!i=?w_D(R{kPaZJ<2R6IP9572~MzAu*>`MHWa +z!?;4OAdJg{5{Zjd!$B=}u{aE_NMQL9L#5&=9D$I=p#v0>6I{)LV6hl@GzR60wMSvG +zHZ~YE+LegITBBSsID4`!8b`JzU_N6>TzWJc;0Qls8GmE#zlvQP2R2WgnFR1zdjSTS +z&t*eD9vjd4x)$57@_oWGzOKdYt5~F3405r#|JCfzTj~i~bia(QdhuoW0gig&`RdWm +zRV5UFKw1M762Vvebhv;m$S1GaBBBwzhc`wkuC#j0e%R;79KY4*xM%Pw{SSWf?^CrE +z@@1tu(e#zBlhi2yEHMyC#0iU*S^b}pGs%Qc;Gy}Q-uS8M~cAP+fNu1bQx)dMTCG~ +zV~)3yALb74t@@+9FGp8cWP0AfH)%ehP+mmPE3#MtuJ7S3uh@VgsgizTUGMVqqixj% +zrzN}Y&td-O!G=vq`qJtlcK*YtGcQ8IUqs~PHy}`J=X)Pvw$@#O7-f(3T!&fxPy&W{}>M_U{`dRo5AqfjPIehOck%t^A-tlTi&W>@vpE!J*)1BYaPLrIJOK2$%rq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ldJ4_&mz9^7mz61j!A7}* +z&dP4m9iaohuL@xq)piP>mX?-2eG2@ty)oSp$66ZC?c|M*PV4`m7qoZrnVPpKhA(@7 +zH9j7{2H6>hQ +z^nFs@+56IY{OYYzK~WE8l65rx9p!?-D)( +z?9_ZwI&qRJOZF5L8*(+XfOKNca!}qjuF&qD3{$LkbF`MvpIG~_AM%(>1cjK3919cO +z;b|1cgEMj#m22KKyO*wUS4U{Ut&8TL%Q?iIJ_5fXnq-Y>xLLpqO(@R$r@?w){=9|1 +zWJ8K)k!YKa*dRA1HvLG~%Sb*6LEcM+u(~kvl@oqN8}>3uk5@hhXrk_J8hLTXB3mx} +zJlBAF%U5$cXZ4eVLhTw$9Svq +z=6qPm0m4?{+>Hc#$?)@m4Z8!=P) +zCTgVuS49NVD7xZuev2Zg$p`YgVo&F`C#xwt&*fI4sF;`v>cWIYdf$504l?3tNNDVI +zfRTnyew=&U8>>~TJ3Ck9qlJ0rIGj{oJX0Ca@3J))#74wUw-sDhbSqsp&rGsEWM|H8 +varEzA5x?Cq3k~*=O=DvYT!$z24|4-F?HvT`#yBwt|9>b0Gh~^*bI88{`O0IT + +diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c +index eca21f8..5d02dfa 100644 +--- a/shell/cc-panel-list.c ++++ b/shell/cc-panel-list.c +@@ -447,7 +447,6 @@ static const gchar * const panel_order[] = { + "universal-access", + "user-accounts", + "default-apps", +- "performance-mode", + "reset-settings", + "datetime", + "information", +@@ -596,23 +595,6 @@ header_func (GtkListBoxRow *row, + { + gtk_list_box_row_set_header (row, NULL); + } +- gboolean support_enabled = FALSE; +- g_autoptr(GSettings) session_support_settings = NULL; +- +- session_support_settings = g_settings_new ("org.cdos.desktop.session"); +- if (g_settings_has_key (session_support_settings, "support-performance-mode")) +- support_enabled = g_settings_get_boolean (session_support_settings, "support-performance-mode"); +- if (support_enabled == FALSE && g_strcmp0 (before_data->id, "performance-mode") == 0) +- { +- gtk_widget_set_visible (GTK_WIDGET (before), FALSE); +- } +- const char *desktop_type; +- desktop_type = g_getenv ("XDG_CURRENT_DESKTOP"); +- if (g_strcmp0 (desktop_type, "CDOS") !=0 && g_strcmp0 (before_data->id, "display") == 0) +- { +- gtk_widget_set_visible (GTK_WIDGET (before), FALSE); +- } +- + } + + /* +diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c +index da02864..850ac25 100644 +--- a/shell/cc-panel-loader.c ++++ b/shell/cc-panel-loader.c +@@ -42,7 +42,6 @@ extern GType cc_bluetooth_panel_get_type (void); + extern GType cc_date_time_panel_get_type (void); + extern GType cc_default_apps_panel_get_type (void); + extern GType cc_display_panel_get_type (void); +-extern GType cc_performance_mode_panel_get_type (void); + extern GType cc_info_overview_panel_get_type (void); + extern GType cc_info_contact_panel_get_type (void); + extern GType cc_info_privacy_panel_get_type (void); +@@ -107,7 +106,6 @@ static CcPanelLoaderVtable default_panels[] = + // PANEL_TYPE("color", cc_color_panel_get_type, NULL), + PANEL_TYPE("datetime", cc_date_time_panel_get_type, NULL), + PANEL_TYPE("default-apps", cc_default_apps_panel_get_type, NULL), +- PANEL_TYPE("performance-mode", cc_performance_mode_panel_get_type, NULL), + // PANEL_TYPE("diagnostics", cc_diagnostics_panel_get_type, cc_diagnostics_panel_static_init_func), + PANEL_TYPE("display", cc_display_panel_get_type, NULL), + PANEL_TYPE("info-overview", cc_info_overview_panel_get_type, NULL), +-- +2.30.2 + diff --git a/found-control-center.spec b/found-control-center.spec index 48cf7fb..0689b62 100644 --- a/found-control-center.spec +++ b/found-control-center.spec @@ -9,13 +9,15 @@ Name: found-control-center Version: 3.38.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Utilities to configure the GNOME desktop License: GPLv2+ and CC-BY-SA URL: http://www.gnome.org Source0: %{name}-%{version}.tar.gz + Patch0: 0001-trun-on-large-text-block-time.patch +Patch0: 0002-remove-some-files.patch BuildRequires: pkgconfig(accountsservice) BuildRequires: desktop-file-utils @@ -173,6 +175,10 @@ The %{name}-data package contains libraries and header files for developing appl %{_datadir}/pkgconfig/gnome-keybindings.pc %changelog +* Thu Oct 19 2023 张涛 - 3.38.4-4 +- fix: 移除多余的文件和代码 +- add patch: 0002-remove-some-files.patch + * Fri Sep 07 2023 qiangy - 3.38.4-3 - In Settings - Auxiliary Functions, open the large text and when setting the date and time, you can see that the time is blocked. -- Gitee