This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How can I assign a hotkey to run a cygwin/bash script?

On Fri, Mar 6, 2009 at 10:59 AM, Arun Biyani <> wrote:
>>> 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).
>>> ? 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.
>>> ? 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?
>>> ? ? cheers,
>>> ? ? ? 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:

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]