Skip to content

[Bug] Scoop applications fail to launch correctly via AppGroup (junction/shim resolution) #115

Open

Description

@jordanpm16

Description

Applications installed through Scoop launch normally from Windows Explorer or the Start Menu, but fail or behave incorrectly when launched through AppGroup.

This affects multiple applications and may be related to how AppGroup handles Scoop's current directory junctions or process execution.

Steps to reproduce

  1. Install an application using Scoop (e.g., LibreWolf or WezTerm).
  2. Add its executable from scoop\apps\<app>\current\ to AppGroup.
  3. Attempt to launch it through AppGroup.
  4. Repeat using the Scoop shim (scoop\shims\) or its Start Menu shortcut.

Observed behavior

  • LibreWolf: Windows reports that LibreWolf-Portable.exe has been changed or moved and offers to delete the shortcut.
  • Scoop shims: Launching through AppGroup fails, despite working normally outside AppGroup.
  • WezTerm: The terminal launches, but applications called during PowerShell initialization (e.g., Starship and Fastfetch) fail with errors such as:
Shim: Could not determine if target is a GUI app.
Assuming console.

Shim: Could not create process with command
'"...\scoop\apps\starship\current\starship.exe" init powershell'

All affected applications work correctly when launched directly through Windows Explorer or the Start Menu.

Expected behavior

Applications launched through AppGroup should behave the same as when launched directly, including support for Scoop's version-independent current directory junctions, shims, and shortcuts.

Potential cause

Looking at PopupWindow.xaml.cs, the TryLaunchApp() method appears to use:

cmd.exe /c start "" "<path>" <args>

Could this indirect launching approach affect shortcut resolution, working directories, inherited process context, or Windows security mitigations?

A potentially related Scoop issue discusses Windows RedirectionGuard preventing junction traversal in certain contexts:

ScoopInstaller/Scoop#6594

It's unclear whether this is the same underlying issue.

Suggested investigation

  • Compare direct Windows shell execution against the current cmd.exe /c start approach.
  • Verify correct handling of .lnk shortcuts and Scoop junctions.
  • Check whether child processes inherit a different execution environment or security context.
  • Ensure the fix applies consistently to individual launches and Launch All.

Related issue

#79 addressed working-directory problems, but this appears to involve additional launch behavior.

Environment

  • Windows 11
  • AppGroup: v 1.6.0
  • Scoop package manager

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions