KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

File association does not work, only command line does

Open RedAero opened this issue 3 years ago • 3 comments

Opening a .ktx file using anything but the -kload option from the command line doesn't work and returns an error popup, which says

Unable to open connection to
C
Host does not exist

This happens if the file is dragged onto the exe, or if it's associated, and it happens with both the portable and standard versions.

The very same .ktx file works fine when used via the command line, i.e. kitty.exe -kload session.ktx.

RedAero avatar Nov 16 '22 18:11 RedAero

Did you run the command kitty.exe -fileassoc as it is described in File association page ?
If yes, can you check the content of the registry key [HKEY_CLASSES_ROOT\kitty.connect.1] ?

cyd01 avatar Nov 18 '22 17:11 cyd01

Can confirm. Even after running kitty_portable.exe -fileassoc Attempting to open any *.ktx file results in:

Unable to open connection to
C
Host does not exist

adf1969 avatar Oct 02 '24 17:10 adf1969

Can confirm. Even after running kitty_portable.exe -fileassoc Attempting to open any *.ktx file results in:

Unable to open connection to
C
Host does not exist

Update: I ran kitty_portable.exe -fileassoc as Administrator, allowed it to modify the registry. Then attempted to open a *.ktx file. It presents an option to "open files with "SSH,Telnet, SDUP..." It did not say "KiTTY" anywhere, but it looked like the KiTTY app, so I selected "Yes for all". Then clicked open.

Now I can confirm that opening a *.ktx file works as intended.

A bit clunky, but I'm sure that relates to something Windows/Putty related. Glad this works. Great functionality.

Now if only the Session files that were saved, were saved by default to *.ktx files, that would be even BETTER. Having to open every Session, Export (to make changes) is more steps that should be necessary, to just get the settings out to disk (at least for Portable installs).

adf1969 avatar Oct 02 '24 17:10 adf1969