[gnome-remote-desktop] clipboard-rdp: Use NULL for delegate->basePath
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] clipboard-rdp: Use NULL for delegate->basePath
- Date: Thu, 4 Mar 2021 20:01:49 +0000 (UTC)
commit b48fa3d3122a42f8c11d4ec32def3126435b66e4
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sun Feb 21 19:37:57 2021 +0100
clipboard-rdp: Use NULL for delegate->basePath
For client-to-server file transfer via the clipboard,
gnome-remote-desktop uses its own handling to convert file lists to uri
lists, as the handling in WinPR for this action is faulty.
So, drop the basePath of the delegate, as we don't need it.
src/grd-clipboard-rdp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/grd-clipboard-rdp.c b/src/grd-clipboard-rdp.c
index ad07333..bda0b0b 100644
--- a/src/grd-clipboard-rdp.c
+++ b/src/grd-clipboard-rdp.c
@@ -1532,7 +1532,6 @@ grd_clipboard_rdp_dispose (GObject *object)
CloseHandle);
g_clear_pointer (&clipboard_rdp->completed_format_list_event, CloseHandle);
g_clear_pointer (&clipboard_rdp->format_data_received_event, CloseHandle);
- g_clear_pointer (&clipboard_rdp->delegate->basePath, g_free);
g_clear_pointer (&clipboard_rdp->system, ClipboardDestroy);
g_clear_pointer (&clipboard_rdp->cliprdr_context, cliprdr_server_context_free);
@@ -1547,7 +1546,6 @@ grd_clipboard_rdp_dispose (GObject *object)
static void
grd_clipboard_rdp_init (GrdClipboardRdp *clipboard_rdp)
{
- const char *prefix = "file://";
const char *grd_path = "/gnome-remote-desktop";
const char *cliprdr_template = "/cliprdr-XXXXXX";
g_autofree char *base_path = NULL;
@@ -1576,7 +1574,7 @@ grd_clipboard_rdp_init (GrdClipboardRdp *clipboard_rdp)
clipboard_rdp->delegate->ClipboardFileSizeFailure = cliprdr_file_size_failure;
clipboard_rdp->delegate->ClipboardFileRangeSuccess = cliprdr_file_range_success;
clipboard_rdp->delegate->ClipboardFileRangeFailure = cliprdr_file_range_failure;
- clipboard_rdp->delegate->basePath = g_strdup_printf ("%s%s", prefix, template_path);
+ clipboard_rdp->delegate->basePath = NULL;
clipboard_rdp->delegate->custom = clipboard_rdp;
clipboard_rdp->format_data_received_event =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]