KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

Voting Question: Portable mode is useful?

Open lars18th opened this issue 3 years ago • 24 comments

Hi,

I hope this voting question will not anger the main developer of KiTTY. If you (@cyd01) found it bad, then please close it.

The idea is to understand the feeling of the users regarding the PORTABLE mode. From my point of view it's the most valuable functionality of KiTTY. From others it seems completly useless. So if most of you apreciate this functionality, then perhaps it will be possible to provide identical functionalities between registry and portable modes. An before posting the question, let me to explain what's my reason to use the PORTABLE mode: because you can synchronize the configuration between different computers (you only need to put all files inside a synchronized folder).

Now the question: What you think about the PORTABLE mode?

  • It's necessary.
  • It's useful.
  • It's good, but I don't use it.
  • I have never used it.
  • It's bad, and I'd rather have it taken away.

Please, note that I put the last even I don't agree with this idea. But the discussion is open and non-discriminatory. So please place your bet! :wink:

lars18th avatar Mar 06 '21 12:03 lars18th

It's necessary - plain and simple I use it exactly this way - put a portable version on Dropbox and it is synced to all computers...

Paul

pmatuszy avatar Mar 06 '21 20:03 pmatuszy

It's necessary. I create sessions for each unique device type or credential set. Most useful feature of portable mode is I keep the app on my network drive so each of my computers/virtual machines are in sync.

waukeerules avatar Mar 08 '21 01:03 waukeerules

It's necessary - I use it only this way.

In the portable mode, I can put all the files, including configuration ones, into the git project and track changes of configuration files too.

valery1707 avatar Mar 16 '21 13:03 valery1707

It is very very necessary. For many people like me don't have the admin permission to install it but I can use the portable version

cpei-avalara avatar Mar 18 '21 02:03 cpei-avalara

I share settings, sessions and host keys not just between machines, but also with team members through a network drive. It's the main reason to use KiTTY over stock PuTTY, actually :)

Lamieur avatar Mar 19 '21 12:03 Lamieur

It's necessary.

I am using the portable mode to sync my sessions via Git.

CWempe avatar Apr 09 '21 08:04 CWempe

It is necessary, period. All the reasons previously expressed in this sense should be more than enough justification.

d-faure avatar Apr 09 '21 11:04 d-faure

@lars18th can your write a list about the different features between the registry and the portable mode?

crash5 avatar Apr 09 '21 20:04 crash5

@lars18th can your write a list about the different features between the registry and the portable mode?

To do this I need your help. Almost I know about these issues:

  • User shortcuts only supported in registry mode #173.
  • ~~Kageant saved sessions empty in portable mode.~~ (implemented in v0.74.4.11)
  • Jump lists only supported in registry mode #167.
  • Default session values are not true consistent #76.
  • Mixed portable and registry unsupported (that's to work in portable mode but read the registry saved sessions).

But I feel some other exists.

lars18th avatar Apr 12 '21 07:04 lars18th

I think #76 is not related to Portable mode. It is a feature request for both mode (Feature request: save only non-default session settings in portable mode). And why dis you said "Kageant saved sessions empty in portable mode." ? This feature works in portable mode too.

cyd01 avatar Apr 12 '21 13:04 cyd01

Hi @cyd01 ,

First thank you for accepting to discuss if the Portable Mode it's relevant or not for this project. :wink:

I think #76 is not related to Portable mode. It is a feature request for both mode (Feature request: save only non-default session settings in portable mode).

Because at time in the registry mode only the differencies over the default values are stored. But with the Portable mode all values from the default are copied in the session file. So after changing the default velues, they don't update the stored values.

And why did you say "Kageant saved sessions empty in portable mode." ? This feature works in portable mode too.

Because I see that after the release of the fix of the issue #275, the submenu "Saved Sessions..." is everytime empty in the Portable mode (I don't care with this, as for me it's sufficient the "New Session" entry). I feel it's because you don't search for the sessions subdirectory or don't load the INI file.

Regards.

lars18th avatar Apr 12 '21 13:04 lars18th

  • #76 it is not true: in portable mode and in registry mode all the settings values are saved. There is no difference between the two modes.
  • about Kageant we must see why in your installation you don't see the menu. Remember kitty.exe, kageant.exe and kitty.ini configuration must be in the same directory to be able to see each other.

cyd01 avatar Apr 13 '21 06:04 cyd01

Hi @cyd01 ,

  • #76 it is not true: in portable mode and in registry mode all the settings values are saved. There is no difference between the two modes.

OK.

  • about Kageant we must see why in your installation you don't see the menu. Remember kitty.exe, kageant.exe and kitty.ini configuration must be in the same directory to be able to see each other.

Yes. In the same directory: kitty_portable.exe, kageant.exe and kitty.ini. However, in INI fileextension=.ktx and the Kageant is started using C:\KiTTYPortable\kitty_portable.exe -runagent -c kitty_portable.exe.

lars18th avatar Apr 13 '21 07:04 lars18th

It is necessary

eugenov avatar Apr 13 '21 19:04 eugenov

It's useful for me.

martinussuherman avatar Apr 14 '21 06:04 martinussuherman

winstore.c is the file where all registry accesses are made:

  • sessions listing
  • loading/saving
  • ssh keys management
  • ...

Unfortunately Pageant was not based on winstore.c file unlike all other PuTTY tools (PuTTY, plink, pscp ...).
So it could not take benefit of the rewriting of this file to be compliant with either registry mode or directory mode. I don't know why PuTTY team did something specific for this binary. But in consequence Kageant always searched the sessions in registry and not on disk.
I've just made a quick fix to be able to show the first level of disk sessions if configured in portable mode. That's a begining ...

cyd01 avatar Apr 16 '21 17:04 cyd01

I've worked a little on the Kageant sessions sub-menu feature.
Here is the first beta.

cyd01 avatar Apr 17 '21 21:04 cyd01

Hi @cyd01 ,

I've worked a little on the Kageant sessions sub-menu feature. Here is the first beta.

Working great with v0.74.4.9. Thank you! :+1: Please, enhance it with almost 1 or 2 sublevels, as I've all my saved sessions (except two for local Cygterm and Windows Shell) in subfolders. Not a huge requirement, as I can use the "New Session", but it will be interesting to use it. Additionaly, one question: It will be possible to assign key shortcuts to the Kageant menus? It will be interesting to open the "New Session" with a "global" shortcut. :wink:

lars18th avatar Apr 19 '21 08:04 lars18th

It's necessary.

3Domse3 avatar Apr 20 '21 10:04 3Domse3

Hi @cyd01 ,

In version v0.74.4.11 submenus in Kageant in Portable mode are working as expected. Thank you!

lars18th avatar Apr 20 '21 15:04 lars18th

Yes, It is!

ljramalho avatar Jul 30 '21 16:07 ljramalho

It's necessary.

acicovic avatar Aug 03 '21 12:08 acicovic

It's necessary - I use it in this manner daily, syncing saved sessions between 4+ PCs to be used on the various computers (including my laptop(s) I use at the various work locations (schools around our county in my case) I'm at from day to day.

jpickerell avatar Apr 02 '22 00:04 jpickerell

Only portable mode I use, and for other software too

c1tyguide avatar Aug 02 '22 20:08 c1tyguide