One other point (sorry for the last 'novel' of a reply...)

I spent some time this weekend trying to determine if we could write a simple 
script to add the AppUserModelID to the shortcut - either  Powershell, Windows 
Scripting, VBScript, Jscript, C#, whatever.  The script would create the 
shortcut with the ID (and even do the registry tweaking - perhaps obviating 
addpm).  Creating a shortcut in those languages Is not hard.  But I did not 
find a way to add the ID without resorting to the same APIs we're looking at 
adding to addpm.  Again, because most use of the AppUserModelID relies on the 
convention that a Windows installer is used to create the shortcut with the ID. 
So in the interest of not mixing in another technology, I still think updating 
addpm is the way to go right now.  Maybe also making more of the behavior 
switch-driven.


-----Original Message-----
From: help-emacs-windows-bounces+rob.davenport=us.abb....@gnu.org 
[mailto:help-emacs-windows-bounces+rob.davenport=us.abb....@gnu.org] On Behalf 
Of Eli Zaretskii
Sent: Monday, October 26, 2015 11:55 AM
To: Rob Davenport <rob.davenp...@gmail.com>
Cc: lek...@gmail.com; d...@austin.rr.com; help-emacs-windows@gnu.org
Subject: Re: [h-e-w] Windows 10 Taskbar Behavior

> Date: Mon, 26 Oct 2015 00:02:34 -0400
> From: Rob Davenport <rob.davenp...@gmail.com>
> Cc: Eli Zaretskii <e...@gnu.org>, "help-emacs-windows@gnu.org" 
> <help-emacs-windows@gnu.org>, 
>       David Vanderschel <d...@austin.rr.com>
> 
> OK. I figured my mystery out. I ran the process monitor when pinning and saw
> Windows looking through the Start Menu for GNU Emacs.lnk.

Does Windows look at that shortcut only if you invoke Emacs from the
Start menu, or does it do that for all the other ways of invoking
Emacs, like the cmd prompt, a desktop shortcut, the Run dialog, etc.?

> So if we fix AddPM to put the app id into the shortcut it creates in the Start
> Menu, Windows 10 should find it and create the correct shortcut when you pin
> Emacs to the taskbar. 

If we find a way to do that from a MinGW-compiled C program, we will.

Although I'd recommend that people stop using addpm altogether, and
instead use the standard ways of adding Emacs to the Start menu,
because addpm does more than just add a shortcut there.  Or maybe send
patches for making the other stuff optional, controlled by some
command-line switches.


Reply via email to