felixse / FluentTerminal

A Terminal Emulator based on UWP and web technologies.
GNU General Public License v3.0
9.15k stars 443 forks source link

Do not keep background processes #1037

Open syrm-ll opened 1 year ago

syrm-ll commented 1 year ago

Just like https://github.com/felixse/FluentTerminal/issues/131 As mentioned in, environment variables must be completely restarted before being refreshed

Maintaining this behavior is normal because the same applies to SSH sessions/cmd/powershell, but the tray icon should not be retained even after closing all tabs (if the corresponding settings are closed, there are also corresponding background processes), which makes a complete restart cumbersome. If the tray icon is closed, it may even be necessary to open the task manager to end the process

I don't understand why I initially chose to keep the background process after closing all windows. If there is no obvious benefit, it is best not to do so, or to give a setting like a tray icon to allow closing

After modifying the environment variables, we only need to easily close all visible windows (usually only one, containing multiple tabs) and then reopen them