Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Chansrv hang fix#2032

Merged
matt335672 merged 4 commits intoneutrinolabs:develfrom
matt335672:chansrv_hang_fix
Oct 29, 2021
Merged

Chansrv hang fix#2032
matt335672 merged 4 commits intoneutrinolabs:develfrom
matt335672:chansrv_hang_fix

Conversation

@matt335672
Copy link
Member

Fixes #2031

Before chansrv adds a UN*X file system path to the Windows clipboard, it checks that the file is not already remote (i.e. on a Windows filesystem).

There is no point in adding these files to the Windows clipboard as they are already on the remote system. Note that the files are in any case still added to the UN*X clipboard, so cut-paste functionality within the remote session works as expected.

Without this fix, selecting file in the remote filesystem and hitting CTRL-C hangs chansrv hard.

With the fix, it is possible to use the Unix desktop copy-paste functionality to copy files from the remote filesystem.

- g_file_get_device_number()
- g_file_get_inode_num()
- Added g_strrchr() and g_strstr()
- Made C prototypes for g_strchr() and g_strnchr() compatible with
  expected C library functions
@matt335672 matt335672 linked an issue Oct 25, 2021 that may be closed by this pull request
int
g_file_get_device_number(const char *filename)
{
#if defined(_WIN32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be discussed in a separate issue, it might be time to discuss such Win32 hack is still needed.

As I already clarified Plat form Support Titer, Windows support is not maintained for years. I will raise a new discussion for this.

@metalefty
Copy link
Member

It makes sense. Let's go ahead.

@matt335672 matt335672 merged commit 4ea93be into neutrinolabs:devel Oct 29, 2021
@matt335672 matt335672 deleted the chansrv_hang_fix branch October 29, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using GUI to copy file in thinclient_drives hangs chansrv hard copy/paste file through clipboard doesn't work on Ubuntu 16.04.6

2 participants