Skip to content

Conversation

@TheChymera
Copy link

@TheChymera TheChymera commented Sep 8, 2025

I fixed up all the commits from #273 into a single commit, and simplified things a bit. Also using fork and execlp instead of popen now.

Looks better, @nurupo, @Green-Sky, @JFreegman ?

Also tested it and it actually works 🥳


This change is Reviewable

ft->line_id = self->chatwin->hst->line_end->id + line_skip;
ft->state = FILE_TRANSFER_STARTED;

run_detached("xdg-open", ft->file_path);
Copy link
Member

Choose a reason for hiding this comment

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

Does it really make sense to start an ft and immediately open the in-progress file transfer?


default:
line_info_add(self, c_config, false, NULL, NULL, SYS_MSG, 0, 0, "File transfer failed (error %d)\n", err);
return;
Copy link
Member

Choose a reason for hiding this comment

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

This switch should be extracted to its own function (instead of goto).

Also the default case string has an extra new line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants