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

[Question] Is there a way to force close a tab while a process is running? #1812

Closed
renyhp opened this issue Nov 14, 2020 · 9 comments
Closed

Comments

@renyhp
Copy link

renyhp commented Nov 14, 2020

The problem

$ python3
>>> while True:
...   pass
... 

The process is now hanging. (Of course, this is just for demonstrating purposes; I know I can make python responsive again with Ctrl+C, but that's not the point. To be clear: my problem arises whenever a process is hanging and I can't stop it with Ctrl+C)

Guake does not respond to tab right click > Close. I can't find the way to close this tab without quitting Guake.

Question

Is this by design? / Is there another way? / Can this feature be added?


Workaround

Ctrl+Z suspends the process and sends it to background. Link to askubuntu

@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 4, 2021

There is a close tab keyboard shortcut which mostly disregards what's happening in the tab that I have bound to CTRL+SHIFT+W but you might choose another combination for. You can find it in preferences under keyboard shortcuts, tab management, and rebind close tab.

@Davidy22 Davidy22 closed this as completed Sep 4, 2021
@renyhp
Copy link
Author

renyhp commented Sep 5, 2021

Actually, I tried that, but the tab does not close.

@Davidy22 Davidy22 reopened this Sep 5, 2021
@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 5, 2021

I just tested the infinite loop in python again and force exit still works for me. In preferences under keyboard shortcuts, what shortcut do you see by "Close tab"? Does it work?

@renyhp
Copy link
Author

renyhp commented Sep 5, 2021

Keyboard shortcuts says "Close tab" is Ctrl+W, because I set it that way. Using it doesn't work for me. I also tried to set it to Ctrl+Shift+W again, the tab is still not closed.

@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 5, 2021

Does the keyboard shortcut do anything anywhere else? It might be getting captured by another process, or another shortcut inside guake.

@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 6, 2021

Actually, in relation to #1863, try starting guake from a terminal and try to close a tab. Do you see the same traceback printed in that issue?

@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 9, 2021

Alright, I think I found the issue. Do you have the "Prompt when close tab" option in preferences set to anything other than "Never"? I think I found an issue in there that I've submitted a pull request to fix.

@Davidy22
Copy link
Collaborator

Merged a patch that will fix that if it was your issue.

@renyhp
Copy link
Author

renyhp commented Sep 10, 2021

That was it, thank you very much!

@renyhp renyhp closed this as completed Sep 10, 2021
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

No branches or pull requests

2 participants