delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/05/13/16:04:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=nvCncB8RWcZt2Gu5
HG+MLQXdQM+clmu1dESMYHfsGoR8U4/MI7X8GfCtQywIVBj2cbnlFJDuH0jymuqn
vteWpxYQRhPSdt2xmJjEjRniVnRq5BwpNm8ZGrffjVucQgK1v8/8YSjvgHxiFklO
40pwFk3+2CJWJl5jvwCEdeHoELI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=IkInMs3s3eyMdVVs+m41ZX
k/OpA=; b=kzfSrQYQQCsiG5NMbSRnJT+0zx07JKtzeHltj2XrcfP1UrO5RQr9Ur
gKgFmxj63dUpwKzHcxk7RWQsTfhAJHKg3lVihAlKu4ShGZv0eoJ69Zl1y+p9YyHr
nwQ1UfvIegqrRPJOm+pf/a8MOAtpbtwsTQK3m5kq/LB7PBqn1IUqs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=
X-HELO: mout.kundenserver.de
Subject: Re: Problems with mintty jump list
To: cygwin AT cygwin DOT com
References: <c68b5886-2d9d-2a80-d400-619e11479965 AT mscha DOT org> <9d72af26-6725-adf5-634c-cc5d16309e9d AT SystematicSw DOT ab DOT ca> <47ed6ff1-1662-c014-58d6-f97ff29bb95b AT towo DOT net> <c6f9c9ed-3a54-7754-790c-462af0c43299 AT mscha DOT org>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <7cb84ed3-51ad-494d-0e0d-552a8326883b@towo.net>
Date: Sun, 13 May 2018 22:04:40 +0200
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: <c6f9c9ed-3a54-7754-790c-462af0c43299@mscha.org>
X-UI-Out-Filterresults: notjunk:1;V01:K0:LHDtIJvKNYk=:+7o1QUH5Uya0dFKIAcvpR7 wap9OY0SviUzn8vcWKyW4U/SkUYOJF5qiygko+pTvBJczPfUGQGfiVcRdjswkylO88fcK7Pyx agel5N7dg7Fijf/9sAJod1SHyYGsBMe3kyKo51PB3AwiF++Hx1Epaz3G1FJrUnzaFr2cQHRf8 8dcde4hhYaY+PRbWbX5d24R1Dk0IwuMgL/vhig4TniIbHQpg6knznoJYYfEHzIJk/7wWIrdiH zXciFSPdTLcqeDQEySqiadGCh1Ed2X4BhXantcoCkIJLJZM3Qaje8zjewXmOEAqMyGCRwN86E /QUAD/oegeU+9ldC/aOC5yA6gQBHTVCuV3v5MPjj7+F63urhavrIEr/ZgdYTMz5rwsN5z87AS 2eDIw9u3u54E/WQE2AvfjUYFCEhzdTMSCNc5Q118orvLV890sqYk/DikFDrjXJzn5DclVOX5R 38JV7UYyAeX5f41CA2uR8iqUrWWvcNqztxXuH9ukhfPXP774DRDiNU0C/HsOR9KmSwZhnLjYp IrLISnJbE2KZ1pWszVVRUOO2E74AXevBZ7EoKg1Ti35JW4yfvcWnyy8VFK4WrbTcgPsX6SPyY ntc8CWAwrDKeG5dJhiohXMpzZpaco+Hkn3BJAD7Ry7s9yBJEJl/1VD6cvnmUctVQID0DKInUk 8sqg6qJQsrkPkXmqCL51aFVC6CZM+0Ih9IpzowwOTuGJfeO9clNqFNJY47DGkTKkzT5cz1T0j Yik7GY0PXgtMsIFm
X-IsSubscribed: yes
Note-from-DJ: This may be spam

Am 13.05.2018 um 16:37 schrieb Michael Schaap:
> 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?
Thanks, maybe jumplist-started instances should implicitly inherit AppID.
Are you sure --store-taskbar-properties is needed to get the jumplist 
stable? This would have additional implications, to be checked.
Thomas

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019