KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

[Feature Request] Autostart/autoclose defined x11 server

Open eugenov opened this issue 5 years ago • 4 comments

Please add similar to winsshterm option to define x11 server, autostart it during session/kitty launch and autoclose it when kitty closes.

eugenov avatar Mar 20 '20 21:03 eugenov

Hi,

Or perhaps another option (more simple to implement) is to provide a new command called "launch X11 server". This will be similar to the current "launch WinSFTP". Then it will be possible to use one shortcut to launch it. I feel this solution can be more easy to implement.

What do you think?

lars18th avatar Mar 23 '20 08:03 lars18th

Hi, the main goal of this issue is get rid of frustration and anger on yourself when you see error output in your terminal (just because you forgot to start x). Another shortcut in kitty's menu is meaningless imho, as x-server is anyway 2 clicks away :)

eugenov avatar Mar 23 '20 09:03 eugenov

Hi @eugenov ,

Then, I suggest the workaround that I use for the Pageant: In my day-to-day work I need to use KiTTY in some cases with certificates, but not every time. For my it's a pain to launch manually the Pageant. Why? Because if another tool launches a compatible pageant agent, then I need to close it, launch the agent, and continue with KiTTY. What is my solution? A simple Windows direct access file with this Target: kitty.exe -runagent -c kitty.exe. Here the trick is this: you launch the KiTTY process from another process, that is the agent. Then you can launch multiple times the KiTTY and if the agent is not loaded then it will be loaded.

The only problem with this solution is that it only works with the agent, as the parameter -c is only considered for the pageant part of the KiTTY. However, you can call to one script file to launch your X11 server and KiTTY.

In any case, I suggest to @cyd01 to extended the -c parameter to the main process. Then you can call to any external process when you launch KiTTY (that is what you want in fact).

Regards.

lars18th avatar Mar 23 '20 11:03 lars18th

:+1: :)

maybe by session end adding a possible for kill/close at the last terminal-window the X Binary by "close-signal" or something if it exist/possible,

  • [ ] kill/close the X-binary at last Terminal session end ?

(sorry for the often edit,,)

blackcrack avatar Jun 15 '20 10:06 blackcrack

@eugenov ... added as wontfix ? hmmpf...

(sidekick : if cyd01 want not support us, why should we support him ?)

blackcrack avatar Nov 08 '22 10:11 blackcrack

Issue closed due to inactivity

cyd01 avatar May 23 '23 18:05 cyd01