From e4da1e90488840ffda7135187254d541882c82d9 Mon Sep 17 00:00:00 2001 From: Yue-Lan Date: Sat, 15 Jun 2024 11:51:08 +0800 Subject: [PATCH] update changelog. --- debian/changelog | 6 +++ debian/patches/series | 1 + debian/patches/update-changelog-1.patch | 55 +++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 debian/patches/update-changelog-1.patch diff --git a/debian/changelog b/debian/changelog index f2752dc..7c17d65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +glib2.0 (2.80.0-ok1~0615) nile; urgency=medium + + * close #I9N13L + + -- Yue Lan Sat, 15 Jun 2024 11:50:11 +0800 + glib2.0 (2.80.0-ok1~0611) nile; urgency=medium * 修复xdg-open无法打开文件问题,关联issue #I9UQJ5 diff --git a/debian/patches/series b/debian/patches/series index e47fd07..9dca928 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -54,3 +54,4 @@ XB-1024-glib-XB-1000-XiB-1024-BUG-156528-GTK-19254-103652.patch formatsize.patch Translated-using-Weblate-Uyghur.patch update-changelog.patch +update-changelog-1.patch diff --git a/debian/patches/update-changelog-1.patch b/debian/patches/update-changelog-1.patch new file mode 100644 index 0000000..21616af --- /dev/null +++ b/debian/patches/update-changelog-1.patch @@ -0,0 +1,55 @@ +From: Yue-Lan +Date: Sat, 15 Jun 2024 11:51:08 +0800 +Subject: update changelog. + +--- + gio/gdesktopappinfo.c | 28 ++++++++++++++++++++++++++++ + 1 file changed, 28 insertions(+) + +diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c +index 9bb8248..44eea2a 100644 +--- a/gio/gdesktopappinfo.c ++++ b/gio/gdesktopappinfo.c +@@ -3274,7 +3274,33 @@ g_desktop_app_info_launch_with_kylin_process_manager (GDesktopAppInfo *info, + { + const gchar *path = g_desktop_app_info_get_filename (G_DESKTOP_APP_INFO (info)); + GVariantBuilder builder; ++ GString *full_command; ++ gchar *tmp; + GList *iter; ++ if (!path) { ++ tmp = g_shell_unquote (info->binary, NULL); ++ full_command = g_string_new (tmp); ++ g_free (tmp); ++ // 如果是从g_app_info_create_from_commandline获取的app info,则需要调用exec拉起 ++ ++ iter = uris; ++ while (iter) { ++ char *uri = iter->data; ++ g_string_append (full_command, " "); ++ g_string_append (full_command, uri); ++ iter = iter->next; ++ } ++ tmp = g_string_free (full_command, FALSE); ++ g_variant_builder_init (&builder, G_VARIANT_TYPE_TUPLE); ++ g_variant_builder_add (&builder, "s", tmp); ++ g_free (tmp); ++ ++ g_dbus_connection_call (session_bus, "com.kylin.ProcessManager", "/com/kylin/ProcessManager/AppLauncher", "com.kylin.ProcessManager.AppLauncher", "RunCommand", ++ g_variant_builder_end (&builder), NULL, G_DBUS_CALL_FLAGS_NONE, -1, cancellable, callback, user_data); ++ ++ g_variant_builder_clear (&builder); ++ return; ++ } + g_variant_builder_init (&builder, G_VARIANT_TYPE_TUPLE); + g_variant_builder_add (&builder, "s", path); + g_variant_builder_open (&builder, G_VARIANT_TYPE_STRING_ARRAY); +@@ -3288,6 +3314,8 @@ g_desktop_app_info_launch_with_kylin_process_manager (GDesktopAppInfo *info, + + g_dbus_connection_call (session_bus, "com.kylin.ProcessManager", "/com/kylin/ProcessManager/AppLauncher", "com.kylin.ProcessManager.AppLauncher", "LaunchAppWithArguments", + g_variant_builder_end (&builder), NULL, G_DBUS_CALL_FLAGS_NONE, -1, cancellable, callback, user_data); ++ ++ g_variant_builder_clear (&builder); + } + + static gboolean