delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/06/12:48:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <0A4ADB2148EA2948B9FFFB980FA0D22F0589F58F@djexchange.dickey-john.com>
References: <8p21r4pui1dgbl8q2ovpvcsharaburle84 AT 4ax DOT com> <49B09CE9 DOT 1060500 AT gmail DOT com> <0A4ADB2148EA2948B9FFFB980FA0D22F0589F52F AT djexchange DOT dickey-john DOT com> <49B1470C DOT 3000107 AT gmail DOT com> <0A4ADB2148EA2948B9FFFB980FA0D22F0589F58F AT djexchange DOT dickey-john DOT com>
Date: Fri, 6 Mar 2009 12:48:13 -0500
Message-ID: <183c528b0903060948u13d666baief05951f83c4705a@mail.gmail.com>
Subject: Re: How can I assign a hotkey to run a cygwin/bash script?
From: Brian Mathis <brian DOT mathis AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Fri, Mar 6, 2009 at 10:59 AM, Arun Biyani <abiyani AT dickey-john DOT com> wrot=
e:
>
>>>
>>> Arun Biyani wrote:
>>>
>>> > It appears that Windows XP shortcuts have a limitation. The
> shortcut
>>> must
>>> > be to a target on the desktop (or to a target in a folder on
> desktop).
>>>
>>> =A0 Surely you can't mean what you've written there exactly how you've
>>> worded
>>> it: I thought shortcuts can point *to* anywhere, on any windows
> version.
>>>
>>> =A0 Did you mean that in order for the /hotkey/ to work, the shortcut
>>> itself has
>>> to be *on* the desktop or in a folder on the desktop?
>>>
>>> =A0 =A0 cheers,
>>> =A0 =A0 =A0 DaveK
>
> Yes. Meant exactly that. I created a shortcut on desktop for mintty.
> Assigned it the key "ctrl+alt+M". I like my desktop to be uncluttered.
> So after assigning the key, I moved the shortcut icon into my work
> folder
> "/c/home/wrk". The hotkey stopped working. I then moved the icon back to
> the desktop and it worked again. Now, all my hot-key-assigned shortcuts
> sit in a folder "shortcuts" on the desktop and they all work.
>

The hotkey is pointing to the location where you had the shortcut.
Since you moved it, there's nothing there for the hotkey to execute.

Hotkeys are not attached to the shortcut, even though the horrible UI
the Explorer uses seems to indicate they are.  They are stored in a
systemwide table that doesn't know if you've moved the target of the
key.  I recommend avoiding the built-in hotkey fields in shortcuts,
and instead use any one of the numerous hotkey managers out there,
such as the one I've written here:
http://directedge.us/content/winhotkey

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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