summaryrefslogtreecommitdiff
path: root/x11/libxfce4menu/files/patch-xfce4-about_system-info.c
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2024-12-21 21:39:17 +0100
committerGuido Falsi <madpilot@FreeBSD.org>2024-12-21 21:39:17 +0100
commit939e8ca9ba0754584bbfe8920007d0cc482b5083 (patch)
treeb01e8eeb0c973f15ff5c7abedcf5cfd2923354c7 /x11/libxfce4menu/files/patch-xfce4-about_system-info.c
parentdevel/py-ipympl: update to 0.9.5 (diff)
Welcome XFCE 4.20 to the FreeBSD ports tree!
Announcement: https://xfce.org/about/news/?post=1734220800 This release has experimental Wayland support, but not all components have been ported, YMMV. From upstream announcement: Important Notice: Please be aware that the Wayland support in Xfce 4.20 is experimental. It is recommended for advanced users only, as you may encounter bugs and experience incomplete functionality. Proceed with caution! Highlight of this commit: - Adding new port x11/libxfce4windowing - Changing some WWW links to XFCE project gitlab - Cleaned up Makefiles - Remove unneeded intltool dependencies - Added WAYLAND option where applicable, enabled by default Many thanks to Olivier Duchateau <duchateau.olivier@gmail.com> who provided a set of patches I started work from. PR: 283345
Diffstat (limited to 'x11/libxfce4menu/files/patch-xfce4-about_system-info.c')
-rw-r--r--x11/libxfce4menu/files/patch-xfce4-about_system-info.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/x11/libxfce4menu/files/patch-xfce4-about_system-info.c b/x11/libxfce4menu/files/patch-xfce4-about_system-info.c
new file mode 100644
index 000000000000..743f38c2136d
--- /dev/null
+++ b/x11/libxfce4menu/files/patch-xfce4-about_system-info.c
@@ -0,0 +1,32 @@
+--- xfce4-about/system-info.c.orig 2024-10-19 08:20:00 UTC
++++ xfce4-about/system-info.c
+@@ -662,8 +662,9 @@ get_os_name (void)
+ get_os_name (void)
+ {
+ GHashTable *os_info;
+- gchar *name, *version_id, *pretty_name, *build_id;
++ gchar *name, *version_id, *build_id;
+ gchar *result = NULL;
++ gchar *kernel_version = NULL;
+ g_autofree gchar *name_version = NULL;
+
+ os_info = get_os_info ();
+@@ -677,13 +678,13 @@ get_os_name (void)
+
+ name = g_hash_table_lookup (os_info, "NAME");
+ version_id = g_hash_table_lookup (os_info, "VERSION_ID");
+- pretty_name = g_hash_table_lookup (os_info, "PRETTY_NAME");
+ build_id = g_hash_table_lookup (os_info, "BUILD_ID");
+
+- if (pretty_name)
+- name_version = g_strdup (pretty_name);
+- else if (name && version_id)
+- name_version = g_strdup_printf ("%s %s", name, version_id);
++ /* Don't use PRETTY_NAME value because sometimes mismatch with uname -r */
++ kernel_version = get_system_info (KERNEL);
++
++ if (name && kernel_version)
++ name_version = g_strdup_printf ("%s %s", name, kernel_version);
+ else
+ name_version = g_strdup (_("Unknown"));
+