Mike Gabriel pushed to branch debian/bookworm/updates at Debian and Ubuntu MATE Packaging Team / mate-settings-daemon
Commits:
-
2f509348
by Mike Gabriel at 2024-01-06T09:04:30+01:00
-
bf0a0fa1
by Mike Gabriel at 2024-01-06T09:04:30+01:00
-
a60f7d46
by Mike Gabriel at 2024-01-06T09:13:48+01:00
5 changed files:
- debian/changelog
- + debian/patches/0003-datetime-fix-memory-leak.patch
- + debian/patches/0004-mate-settings-manager-fix-memory-leak.patch
- + debian/patches/0005-Relax-High-DPI-limits.patch
- debian/patches/series
Changes:
1 | +mate-settings-daemon (1.26.0-1+deb12u1) bookworm; urgency=medium
|
|
2 | + |
|
3 | + [ Martin Wimpress ]
|
|
4 | + * debian/patches:
|
|
5 | + + Add 1002-debounce_multiple_rfkill_events.patch (LP: #1936956)
|
|
6 | + |
|
7 | + [ Mike Gabriel ]
|
|
8 | + * debian/patches:
|
|
9 | + + Add 0003-datetime-fix-memory-leak.patch and 0004-mate-settings-manager-
|
|
10 | + fix-memory-leak.patch. Fix two memory leaks. (Cherry-picked from v1.26.1).
|
|
11 | + + Add 0005-Relax-High-DPI-limits.patch. Set DPI_LIMIT to 90% of 2x
|
|
12 | + DPI_FALLBACK, to catch QHD laptop screens. (Cherry-picked from v1.26.1).
|
|
13 | + |
|
14 | + -- Mike Gabriel <sunweaver@debian.org> Sat, 06 Jan 2024 09:05:33 +0100
|
|
15 | + |
|
1 | 16 | mate-settings-daemon (1.26.0-1) unstable; urgency=medium
|
2 | 17 | |
3 | 18 | [ Martin Wimpress ]
|
1 | +From 0a7512040ff4e9e6354d8d519cd74dfb50fb7825 Mon Sep 17 00:00:00 2001
|
|
2 | +From: rbuj <robert.buj@gmail.com>
|
|
3 | +Date: Thu, 21 Oct 2021 16:15:39 +0200
|
|
4 | +Subject: [PATCH 3/5] datetime: fix memory leak
|
|
5 | + |
|
6 | +Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
|
|
7 | +---
|
|
8 | + plugins/datetime/msd-datetime-mechanism.c | 6 ++++--
|
|
9 | + 1 file changed, 4 insertions(+), 2 deletions(-)
|
|
10 | + |
|
11 | +diff --git a/plugins/datetime/msd-datetime-mechanism.c b/plugins/datetime/msd-datetime-mechanism.c
|
|
12 | +index 0a604f6..75a7615 100644
|
|
13 | +--- a/plugins/datetime/msd-datetime-mechanism.c
|
|
14 | ++++ b/plugins/datetime/msd-datetime-mechanism.c
|
|
15 | +@@ -228,7 +228,7 @@ msd_datetime_mechanism_new (void)
|
|
16 | + static gboolean
|
|
17 | + _check_polkit_for_action (MsdDatetimeMechanism *mechanism, DBusGMethodInvocation *context, const char *action)
|
|
18 | + {
|
|
19 | +- const char *sender;
|
|
20 | ++ char *sender;
|
|
21 | + GError *error;
|
|
22 | + PolkitSubject *subject;
|
|
23 | + PolkitAuthorizationResult *result;
|
|
24 | +@@ -238,6 +238,7 @@ _check_polkit_for_action (MsdDatetimeMechanism *mechanism, DBusGMethodInvocation
|
|
25 | + /* Check that caller is privileged */
|
|
26 | + sender = dbus_g_method_get_sender (context);
|
|
27 | + subject = polkit_system_bus_name_new (sender);
|
|
28 | ++ g_free (sender);
|
|
29 | +
|
|
30 | + result = polkit_authority_check_authorization_sync (mechanism->priv->auth,
|
|
31 | + subject,
|
|
32 | +@@ -587,7 +588,7 @@ check_can_do (MsdDatetimeMechanism *mechanism,
|
|
33 | + const char *action,
|
|
34 | + DBusGMethodInvocation *context)
|
|
35 | + {
|
|
36 | +- const char *sender;
|
|
37 | ++ char *sender;
|
|
38 | + PolkitSubject *subject;
|
|
39 | + PolkitAuthorizationResult *result;
|
|
40 | + GError *error;
|
|
41 | +@@ -595,6 +596,7 @@ check_can_do (MsdDatetimeMechanism *mechanism,
|
|
42 | + /* Check that caller is privileged */
|
|
43 | + sender = dbus_g_method_get_sender (context);
|
|
44 | + subject = polkit_system_bus_name_new (sender);
|
|
45 | ++ g_free (sender);
|
|
46 | +
|
|
47 | + error = NULL;
|
|
48 | + result = polkit_authority_check_authorization_sync (mechanism->priv->auth,
|
|
49 | +--
|
|
50 | +2.39.2
|
|
51 | + |
1 | +From e504604afc8f1a5b3bd9efdcb97b02fce4e53f57 Mon Sep 17 00:00:00 2001
|
|
2 | +From: rbuj <robert.buj@gmail.com>
|
|
3 | +Date: Mon, 14 Mar 2022 13:31:00 +0100
|
|
4 | +Subject: [PATCH 4/5] mate-settings-manager: fix memory leak
|
|
5 | + |
|
6 | +Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
|
|
7 | +---
|
|
8 | + mate-settings-daemon/mate-settings-manager.c | 5 ++++-
|
|
9 | + 1 file changed, 4 insertions(+), 1 deletion(-)
|
|
10 | + |
|
11 | +diff --git a/mate-settings-daemon/mate-settings-manager.c b/mate-settings-daemon/mate-settings-manager.c
|
|
12 | +index 91b5d13..8c511a1 100644
|
|
13 | +--- a/mate-settings-daemon/mate-settings-manager.c
|
|
14 | ++++ b/mate-settings-daemon/mate-settings-manager.c
|
|
15 | +@@ -427,15 +427,18 @@ static void
|
|
16 | + mate_settings_manager_init (MateSettingsManager *manager)
|
|
17 | + {
|
|
18 | + char *schema;
|
|
19 | +- GSettings *settings;
|
|
20 | +
|
|
21 | + manager->priv = mate_settings_manager_get_instance_private (manager);
|
|
22 | +
|
|
23 | + schema = g_strdup_printf ("%s.plugins", DEFAULT_SETTINGS_PREFIX);
|
|
24 | + if (is_schema (schema)) {
|
|
25 | ++ GSettings *settings;
|
|
26 | ++
|
|
27 | + settings = g_settings_new (schema);
|
|
28 | + manager->priv->init_load_priority = g_settings_get_int (settings, "init-load-priority");
|
|
29 | ++ g_object_unref (settings);
|
|
30 | + }
|
|
31 | ++ g_free (schema);
|
|
32 | + }
|
|
33 | +
|
|
34 | + static void
|
|
35 | +--
|
|
36 | +2.39.2
|
|
37 | + |
1 | +From 669fa3007a661c033a16526ee2dc7672d164d5f7 Mon Sep 17 00:00:00 2001
|
|
2 | +From: Fabio Pugliese Ornellas <fabio.ornellas@gmail.com>
|
|
3 | +Date: Thu, 8 Sep 2022 23:44:35 +0100
|
|
4 | +Subject: [PATCH 5/5] Relax High DPI limits
|
|
5 | + |
|
6 | +Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
|
|
7 | +---
|
|
8 | + plugins/xsettings/msd-xsettings-manager.c | 6 ++++--
|
|
9 | + 1 file changed, 4 insertions(+), 2 deletions(-)
|
|
10 | + |
|
11 | +diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
|
|
12 | +index ec7d079..c8199da 100644
|
|
13 | +--- a/plugins/xsettings/msd-xsettings-manager.c
|
|
14 | ++++ b/plugins/xsettings/msd-xsettings-manager.c
|
|
15 | +@@ -76,12 +76,14 @@
|
|
16 | + #define DPI_HIGH_REASONABLE_VALUE 500
|
|
17 | +
|
|
18 | + /* The minimum resolution at which we turn on a window-scale of 2 */
|
|
19 | +-#define HIDPI_LIMIT (DPI_FALLBACK * 2)
|
|
20 | ++/* Set this to 90% of 2x DPI_FALLBACK, to catch QHD laptop screens */
|
|
21 | ++/* that are just below the 2x DPI_FALLBACK mark */
|
|
22 | ++#define HIDPI_LIMIT (DPI_FALLBACK * 2 * 90 / 100)
|
|
23 | +
|
|
24 | + /* The minimum screen height at which we turn on a window-scale of 2;
|
|
25 | + * below this there just isn't enough vertical real estate for GNOME
|
|
26 | + * apps to work, and it's better to just be tiny */
|
|
27 | +-#define HIDPI_MIN_HEIGHT 1500
|
|
28 | ++#define HIDPI_MIN_HEIGHT 1440
|
|
29 | +
|
|
30 | + #define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE))
|
|
31 | + #define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1))
|
|
32 | +--
|
|
33 | +2.39.2
|
|
34 | + |
1 | 1 | 1001_RDA-Don-t-apply-stored-monitor-configuration-if-sess.patch
|
2 | 2 | 1002-debounce_multiple_rfkill_events.patch
|
3 | +0003-datetime-fix-memory-leak.patch
|
|
4 | +0004-mate-settings-manager-fix-memory-leak.patch
|
|
5 | +0005-Relax-High-DPI-limits.patch |