Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TerminalWidget: Use the non-deprecated spawn API #809

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tintou
Copy link
Member

@tintou tintou commented Nov 21, 2024

No description provided.

@jeremypw
Copy link
Collaborator

If run on OS7.1 this seems to cause the whole session to crash when the terminal window is closed. It runs OK on OS8 though.

@jeremypw
Copy link
Collaborator

The problem is caused by an incorrect signature for TerminalSpawnAsyncCallback in the version of vte-2.91.vapi in OS7.1. If a corrected version is put in the the vapi folder of the source code then the issue is fixed.

warning (error.message);
}
}
);

check_cwd_changed ();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be inside the callback?

-1,
null,
(terminal, pid, error) => {
if (pid != -1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to check error == null since the else clause dereferences error?

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.

2 participants