Comments (6)
I see there is a Profile setting to automatically restart the command upon exit, but if I'm not mistaken, that isn't exposed as a menu option.
I'll try creating a custom profile with no command specified, but with that preference set, and use the "-p PROFILE" command line option to specify that profile with the -e option.
Original comment by: tmetro
from roxterm.
You can use Profiles to configure the command to run and/or get it to run the command repeatedly (I think the latter reruns the -e command rather than what's configured by the profile, but I can't remember for sure without checking the code). Is that any good? I think the next best thing I could do would be to add an option to open a dialog to let the user choose what to do after the command terminates.
Original comment by: realh
from roxterm.
At first I was thinking only in terms of what happens if the command exits when it fails, but with your case use of ssh the connection can also just hang on occasion, so I suppose a menu item to kill and restart the command before it exits would be useful. I'm not sure what's the best thing to do about the first command though. Should roxterm try to kill it at all? I suppose it'll get a HUP when it gets detached from the terminal anyway. What if it doesn't respond to TERM or HUP and holds a resource that blocks a new instance? How long should roxterm wait before sending a KILL, and should it prompt?
Original comment by: realh
from roxterm.
I think the latter reruns the -e command rather than what's configured by the profile...
Yes, this does work, but then I ran into bug #2810505.
...the connection can also just hang on occasion, so I suppose a menu item to kill
and restart the command before it exits would be useful...
Good point. Yes.
Should roxterm try to kill it at all?
What is the lineage of the command? Are you spawning a child shell and launching the command within that?
If so, and you plan to kill the parent shell, then as you say the grandchild process with get a HUP signal. Until you receive feedback from users indicating otherwise, I'd stick with that approach, as it may only be a one in a thousand corner case where additional termination effort is required.
If it does become necessary, the best approach might be one that uses stages of escalation, with timeouts, and confirmation dialogs. So for example, if after 5 seconds the process hasn't exited, you put up a dialog informing the user of this, giving them the option to wait, try harder, or cancel. If it's a stuck process, they try harder. If it's a bogged down machine going into swap, they wait.
Original comment by: tmetro
from roxterm.
I'm going to pass on this, at least for now. I think it's quite an esoteric requirement, and supporting it in a nice manner could lead to complications (like a dialogue with a "Don't show this again" option).
Original comment by: realh
from roxterm.
I added a "Restart command" after all.
Original comment by: realh
from roxterm.
Related Issues (20)
- how to prevent roxterm from stealing focus while keying in unicode sequence? HOT 2
- Fixing the PPA HOT 5
- Using "Tab" key in a keyboard shortcut did not work HOT 3
- Sixel support HOT 2
- no longer obtainable with apt-get install HOT 10
- Stable releases on github? HOT 3
- 3.12.1: missing pcre2 dependency checking HOT 9
- Enable wrap_switch_tab property HOT 2
- Select All not working correctly in Linux Mint-21.x HOT 3
- Feature: Write scrollback buffer to disk HOT 12
- RFE: please start making github releases
- Color Scheme reverts to GTK after closing. HOT 2
- Error "color-scheme" HOT 8
- New Roxterm / New window opens in background HOT 5
- FEATURE REQUEST: disable more/all keyboard shortcuts HOT 2
- [CATPPUCCIN] color theme for [NEOVIM] is unsupported in ROXTerm version 2.9.5 HOT 7
- Latest release 3.14 does not follow or update to current config. HOT 1
- Upgrade from 3.14.3 -> 3.15.0 causes $TERM variable to not be set and all kinds of related issues HOT 2
- Apply different GTK CSS depending on roxterm instance profile HOT 4
- Unable to change default color scheme HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roxterm.