mirror of https://gitee.com/openkylin/glib2.0.git
update changelog.
This commit is contained in:
parent
073ef87243
commit
e4da1e9048
|
@ -1,3 +1,9 @@
|
|||
glib2.0 (2.80.0-ok1~0615) nile; urgency=medium
|
||||
|
||||
* close #I9N13L
|
||||
|
||||
-- Yue Lan <lanyue@kylinos.cn> Sat, 15 Jun 2024 11:50:11 +0800
|
||||
|
||||
glib2.0 (2.80.0-ok1~0611) nile; urgency=medium
|
||||
|
||||
* 修复xdg-open无法打开文件问题,关联issue #I9UQJ5
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
From: Yue-Lan <lanyue@kylinos.cn>
|
||||
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
|
Loading…
Reference in New Issue