pop-os / cosmic-term

WIP COSMIC terminal emulator
GNU General Public License v3.0
313 stars 41 forks source link

Cosmic Terminal freezes when running the exit command #191

Open VPeti1 opened 2 months ago

VPeti1 commented 2 months ago

If i type in the 'exit' command into Cosmic Terminal that tab just freezes. This also happens if i pkill the shell.

ChocolateLoverRaj commented 2 months ago

When I type exit it exits without freezing.

leviport commented 2 months ago

Same for me running Pop with COSMIC DE.

@VPeti1 can you share some details about which OS and DE you're running when this happens?

VPeti1 commented 2 months ago

Im using Arch linux with the Cosmic DE. I had built Cosmic Terminal from source using just

VPeti1 commented 2 months ago

image It just hangs like that. I am using the fish shell maybe that's the problem

ChocolateLoverRaj commented 2 months ago

I'm on NixOS. I tried it with the package from nixos unstable and also running cargo r from source. I'm using bash.

MoSal commented 2 months ago

@VPeti1

What happens if you run:

  1. kill $fish_pid
  2. kill -9 $fish_pid
  3. kill $(ps -o ppid= -p $fish_pid)
VPeti1 commented 2 months ago

@MoSal It freezes the terminal aswell

MoSal commented 2 months ago

@VPeti1 All three commands? even the third one?

If yes, what happens if you run:

kill -9 $(ps -o ppid= -p $fish_pid)
VPeti1 commented 2 months ago

@MoSal Then it closes Cosmic terminal but the other ones just freeze the terminal

surrealreverie commented 1 month ago

Not sure if this is relevant, but for each profile there is an option called "Hold" which prevents the terminal from closing even if the child process is terminated.

hold option

If you have set a default profile, or opened a new tab with a profile, try disabling this option on that profile, and then try exiting.