From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4763 invoked by alias); 13 May 2018 14:37:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4740 invoked by uid 89); 13 May 2018 14:37:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Terminal, enhancement, Thunderbird, thunderbird X-HELO: mscha.org Received: from dogbert.mscha.org (HELO mscha.org) (31.25.103.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 May 2018 14:37:23 +0000 Received: from [IPv6:2001:983:8781:1:4d8e:8524:7524:481e] ([IPv6:2001:983:8781:1:4d8e:8524:7524:481e]) (authenticated bits=0) by mscha.org (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id w4DEbJ2g016459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 13 May 2018 16:37:20 +0200 Subject: Re: Problems with mintty jump list To: cygwin@cygwin.com References: <9d72af26-6725-adf5-634c-cc5d16309e9d@SystematicSw.ab.ca> <47ed6ff1-1662-c014-58d6-f97ff29bb95b@towo.net> From: Michael Schaap Message-ID: Date: Sun, 13 May 2018 14:38:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <47ed6ff1-1662-c014-58d6-f97ff29bb95b@towo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00166.txt.bz2 On 13 May 18 11:45, Thomas Wolff wrote: > Am 12.05.2018 um 19:15 schrieb Brian Inglis: >> On 2018-05-12 06:28, Michael Schaap wrote: >>> I'm experimenting with the new mintty jump list feature, but I'm >>> having trouble >>> getting things working. >>> I've added the following to my .minttyrc: >>>      TaskCommands=default:-p 100,100;myserver:-p bottom -p right -o >>> BackgroundColour=255,250,230 -e /usr/bin/ssh -C -Y -o >>> ServerAliveInterval=60 >>> myserver.example.org >>> I then started mintty with: >>>      mintty -o AppID=minttytest >>> The MinTTY window appeared, with a new icon on the task bar. I >>> pinned that >>> icon, and closed this new window. >>> A right click on the taskbar icon now indeed shows two jump list >>> entries: >>> default and myserver. >>> But when I click on "default", a MinTTY window does open and runs my >>> shell >>> (which is zsh), but the environment is different than normal: for >>> instance, >>> /usr/bin is not in the $PATH and most commands are therefore not >>> found.  (It's >>> not running as a login shell?) > Yes, as you most likely want to run a login shell, you should add a > bare '-' to the arguments list, like > > TaskCommands=default:-p 100,100 -;... Indeed, that helped. I was a bit confused about why I needed this here, and not when running MinTTY "normally", but then I saw that the default shortcut also had this argument. > >>> When I close all MinTTY windows, the icon remains on the taskbar (as >>> it should), >>> but the jump list entries are gone. >>> What am I doing wrong? > Nothing. I have no idea why this fails, in my testing it worked. On > the other hand, the whole jump list showed up on only 2 of 3 test > systems and failed on one. Mozilla applications (Thunderbird, Firefox) > manage to establish a task list on all of these systems, but their > jumplist code looks much more complex. If someone finds out by what > cursed Microsoft magic this is further affected, I'd consider an > enhancement... I got things working.  :-) I noted that the entries disappeared from the list as soon as I clicked on one of them.  I eventually tried adding "-o AppID=..." to the arguments in TaskCommands, and that helped: the entries remained. The only remaining problem was that the entries still disappeared when clicking on "Terminal" (or simply clicking on the pinned taskbar item with no terminal windows open), so I added AppName and AppLaunchCmd options to .minttyrc, and that did the trick. So, in the end, I added these lines to ~/.minttyrc:     TaskCommands=default:-o AppID=mymintty -p 1170,605 -;myserver:-o AppID=mymintty -p bottom -p right -o BackgroundColour=255,250,230 -e /usr/bin/ssh -C -Y -o ServerAliveInterval=60 myserver.example.org     AppName=Terminal     AppLaunchCmd=C:\cygwin64\bin\mintty.exe -o AppID=mymintty - then started MinTTY with this shortcut:     C:\cygwin64\bin\mintty.exe -o AppID=mymintty --store-taskbar-properties - and pinned it to the taskbar. Thanks for your help (and for providing the awesome MinTTY in general!),  – Michael PS: PuTTY also supports the jump list, both "Recent Sessions" and a couple of fixed "Tasks", this appears to work fine.  I'm sure you're more familiar with the PuTTY source code than that of Mozilla apps, so perhaps it helps to take a look at how PuTTY's doing this? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple