lablua / putty-launchy-plugin

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

Support for loading sessions from file used by PuTTY Tray #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I'm a grateful user of the PuTTY Launchy Plugin.

I use PuTTY Tray (http://www.xs4all.nl/~whaa/putty/) instead of PuTTY, as
it supports saving sessions into files rather than in the registry, which I
find very useful since I use a number of machines.

I would just like to suggest as a future enhancement for the PuTTY Launchy
Plugin, which is to support reading sessions from both the registry as well
as files.

A bit of info on how I gather this functionality works in PuTTY Tray and
how it could be supported by PuTTY Launchy Plugin.

The directory used for saving these sessions is configurable through the
use of a putty.conf file which is located in the same directory as the
PuTTY Tray executable, but the default is to save them in a folder named
"sessions" which is located in the same directory as PuTTY Tray.

Each session is stored in a seperate file, with the file named the same as
the saved session name. It is then possible to connect to one of these
sessions from the command line using the command line option -loadfile
sessionname.

I suspect that the easiest way to find the path of this folder is to first
check for the existence of a putty.conf in the same directory as the
executable, and read the value of the sessions setting, and if this file or
setting does not exist, default to the session directory being located in
the directory that contains the executable.

Once the path is found, the filenames of all the files in the sessions
directory would need to be added as session names, with a flag added in the
plug in to recognize that they are a file based session rather than
registry based one, so the correct command line options can be sent to PuTTY.

It is worth noting that PuTTY Tray supports based registry and file based
saved sessions at the same time, and that if no file based saved sessions
exist, then the sessions directory generally doesn't exist either.

Does this sound like a do-able request? I understand if its not, I just
thought I would ask :)

Thanks again for a great plugin.

Regards,
Steven

Original issue reported on code.google.com by shon...@gmail.com on 3 Jan 2008 at 8:50

GoogleCodeExporter commented 9 years ago
I'll take a look at this.  I use PuTTY Tray as well (for the URL linking), but 
still
store the sessions in the registry.  I should be able to add "Load sessions from
registry" and "Load sessions from files" options to the plugin to support this.

Original comment by matthew....@gmail.com on 3 Jan 2008 at 2:35

GoogleCodeExporter commented 9 years ago
In v2.1

Original comment by matthew....@gmail.com on 28 Apr 2008 at 1:59