{"id":38,"date":"2012-11-30T14:39:07","date_gmt":"2012-11-30T14:39:07","guid":{"rendered":"http:\/\/simon.aldrich.eu\/blog\/?p=38"},"modified":"2012-11-30T14:39:07","modified_gmt":"2012-11-30T14:39:07","slug":"pageant-patch","status":"publish","type":"post","link":"https:\/\/simon.aldrich.cc\/blog\/2012\/11\/pageant-patch\/","title":{"rendered":"Changing Pageant&#8217;s default behaviour"},"content":{"rendered":"<p>As a Unix developer, I spend most of my working day with lots of terminals open to various Linux &amp; Solaris development or test servers<\/p>\n<p>For many years I&#8217;ve used the excellent <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\" target=\"_blank\">PuTTY<\/a> by Simon Tatham for all my SSH&#8217;ing needs. In addition to PuTTY, I also use <a href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/0.62\/htmldoc\/Chapter9.html#pageant\" target=\"_blank\">Pageant<\/a> to make launching new terminal sessions as easy as right clicking an icon in the system-tray and choosing the machine.<\/p>\n<p>The one complaint that I have with Pageant is its default double-click behaviour. My typical use case for Pageant is:<\/p>\n<ul>\n<li>I start Pageant when logging into Windows and automatically load my SSH key (by supplying the filename of the private-key file as a command-line argument to Pageant).<\/li>\n<li>I mostly launch previously saved PuTTY sessions from Pageant&#8217;s &#8220;Saved Sessions&#8221; menu.<\/li>\n<li>Occasionally (once or twice a day) I&#8217;ll need to launch a PuTTY session to a machine which isn&#8217;t in my &#8220;Saved Sessions&#8221; (usually because saving them all would make the &#8220;Saved Sessions&#8221; menu overly long).<\/li>\n<\/ul>\n<p>Pageant&#8217;s default behaviour when double-clicking the tray icon is to launch the &#8220;View Keys&#8221; dialog. What I&#8217;d really like it to do is to launch PuTTY (i.e.: what the &#8220;New Session&#8221; menu item does).<\/p>\n<p>Thankfully Pageant (indeed all of the PuTTY suite) is open-source so it was relatively straightforward to download the source, make my simple change and recompile Pageant.<\/p>\n<p>In case anyone else shares my use case I&#8217;m making this modified Pageant available:<\/p>\n<table style=\"border:none;\">\n<tbody style=\"border:none;\">\n<tr style=\"border:none;\">\n<td width=\"20\" style=\"border:none; vertical-align:middle;\"><a href=\"http:\/\/simon.aldrich.eu\/download\/pageant\/pageant.exe\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" style=\"border:none;\" src=\"https:\/\/i0.wp.com\/simon.aldrich.eu\/download\/pageant\/pageant.gif?resize=16%2C16\" alt=\"\" width=\"16\" height=\"16\" \/><\/a><\/td>\n<td style=\"border:none; vertical-align:middle; text-align: left;\"><a href=\"http:\/\/simon.aldrich.eu\/download\/pageant\/pageant.exe\">Pageant<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can also download a patch file containing these changes which can be applied to Pageant v0.62 <a href=\"http:\/\/simon.aldrich.eu\/download\/pageant\/New Session.patch\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a Unix developer, I spend most of my working day with lots of terminals open to various Linux &amp; Solaris development or test servers For many years I&#8217;ve used the excellent PuTTY by Simon Tatham for all my SSH&#8217;ing needs. In addition to PuTTY, I also use Pageant to make launching new terminal sessions [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,6],"tags":[11,10],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2Rw4E-C","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":18,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}