lablua / putty-launchy-plugin

Automatically exported from code.google.com/p/putty-launchy-plugin
0 stars 1 forks source link

Wont load saved session, unknown option -loadfile #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open saved session, with portaputty

What is the expected output?
A session opened

What do you see instead?
Error window, gives "unknown option -loadfile"

What version of the product are you using? On what operating system?
Launchy 2.1.2 for windows
PuTTY Plugin v2.2
PortaPutty 0.60 svn 7489

Original issue reported on code.google.com by eds...@gmail.com on 4 Jun 2009 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
It seems that there are multiple versions of portaPuTTY and the load from 
filesystem
patch by different authors, and that they are not compatible.

The plugin supports this patch: http://jakub.kotrla.net/putty/, which is used in
PuTTYtray.  This stores sessions in a folder 'sessions' and takes a -loadfile 
argument.

The portaPuTTY here (http://socialistsushi.com/2005/11/17/portaputty) seems to 
store
sessions in the '.putty/sessions' folder and i'm not sure what argument it 
takes.

The portaPuTTY here (http://code.google.com/p/portaputty/) also seems to use the
'.putty/sessions' folder and again, not sure what argument it takes.

The strange thing is that the plugin only looks under 'sessions', not
'.putty/sessions', so I'm not sure how it found any sessions to start.

In any case, I will try make a new version that has configurable sessions 
directories
and configurable command line options to load the file, but I'm not sure how 
soon I
will be able to work on it.  Not sure if I should just have toggles between
'sessions' and '.putty/sessions' / '-file' and '-loadfile', or if I might need 
to
support even more than that.  I see that there is also 'PuTTY Portable' which 
might
use a different method.

In the meantime, you may want to use PuTTYtray, which is known to work...

Original comment by matthew....@gmail.com on 4 Jun 2009 at 6:54

GoogleCodeExporter commented 9 years ago
It seems that the -loadfile option is not the most widespread amongst the vast 
ocean
of Putty forks.
I'm using Kitty and the original Putty, and none of them support -loadfile. The
"original" command line option to open a session is actually -load
(http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter3.html#using-cmdline).
I'll give a try to the fork you suggest, hoping to see a version with the 
options you
were thinking about.
Thanks for this great Launchy plugin, BTW!

Original comment by thomas.b...@gmail.com on 1 Apr 2010 at 7:57

GoogleCodeExporter commented 9 years ago
The original Putty doesn't support using a file (it only uses the registry).  
To load
from the registry, it uses the '-load' option (See
http://code.google.com/p/putty-launchy-plugin/source/browse/trunk/PuTTY/PuTTY.cp
p#204).
 I hadn't heard of Kitty before, but it looks like it also saves its sessions in a
folder called 'sessions', with a possible directory structure below that.  It 
may
overload the "-load" operator as well, like the other version of portaPutty
referenced above.  I may just extend this interface with a couple more options 
like
"What directory to find session files" and "What command line option to use to 
load a
session file".  I personally use PuTTYtray, so I know that works.

Unfortunately I don't have much time to work on this right now, but anyone that 
wants
to is welcome to submit a patch.  In the meantime, you may want to see if 
PuTTYtray
(or another fork using the same sessions in files patch) works for you.

Original comment by matthew....@gmail.com on 1 Apr 2010 at 10:54

GoogleCodeExporter commented 9 years ago
v2.3 includes additional options for what command line option to pass to load a 
file
and what directory to search for the session files.

Original comment by matthew....@gmail.com on 7 May 2010 at 5:08