<p dir="auto">Programs can have links at multiple locations. If links at one these locations is deleted, program should be displayed using links from another locations.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0.23.0</li>
<li>PowerToy Utility: Run</li>
<li>Running PowerToys as Admin: no</li>
<li>Windows build number: [run "winver"]</li>
</ul>
<p dir="auto">Steps to repro :</p>
<ol dir="auto">
<li>Search <code class="notranslate">steam</code>.</li>
<li>Press <code class="notranslate">ctrl+shift+e</code> to open file location. This opens up <code class="notranslate">C:\Users\divyan\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Steam</code> folder.</li>
<li>Delete the shortcut.</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto"><code class="notranslate">Steam</code> should still be displayed as another shortcut is present in <code class="notranslate">C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Steam</code> folder.</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Steam is not displayed. Restarting Run fixes this issue.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p>
<h2 dir="auto">ℹ Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0.21.1</li>
<li>PowerToy Utility: PT Run</li>
<li>Running PowerToys as Admin: Yes</li>
<li>Windows build number: 19041.508</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<p dir="auto"><em>(Pre: have <code class="notranslate">term.cmd</code> on the path, and a <code class="notranslate">term.js</code> file. (See <a href="https://gist.github.com/TheBrenny/5a22c719c22158ed0034b849ad1c312d">this gist</a> for contents))</em></p>
<ol dir="auto">
<li>Open PT Runner and enter <code class="notranslate">&gt; term</code></li>
<li>Windows Terminal opens as it should.</li>
<li>Open PT Runner and enter <code class="notranslate">&gt; term node</code></li>
<li>No response?</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">The argument passed to the term.cmd file should forward onto the term.js file spawning a Windows Terminal process with the NodeJS profile active (as specified in the term.js file).</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Nothing happens. Not a process hang, but the Windows Terminal doesn't appear, fullstop. Running <code class="notranslate">&gt; code tmp.js</code> correctly opens a VSCode instance with an unsaved file named <code class="notranslate">tmp.js</code>, so I don't think it's an issue with args, but maybe with how args are piped to the command - specifically with how they appear in the <code class="notranslate">%*</code> object in batch? I don't really know though...</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto">(I tried to screen record, but the Windows Gamebar doesn't record the whole screen. <g-emoji class="g-emoji" alias="worried" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f61f.png">😟</g-emoji> So sorry, nope.)</p>