Feature request: named launcher with icon for the Windows portable build (ComfyUI.exe instead of python.exe in Task Manager)

Open
#17,985 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
build-system

Research direction

Start with the run_*.bat launch scripts and the Windows portable packaging step, which the issue says must change. The proposal needs a copied python_embeded\python.exe renamed to ComfyUI.exe, a replaced icon resource, and scripts that also match ComfyUI.exe by process name. Done means the portable build starts main.py through the new launcher and Task Manager shows the ComfyUI icon. Maintainers have not yet agreed to ship it, so confirm that first.

Written by the indexing model from the issue text.

Description

Feature request

On Windows, the portable build runs ComfyUI as python_embeded\python.exe. In Task Manager (and in tools like Process Explorer or tasklist), ComfyUI shows up as an anonymous python.exe with the default Python icon. Machines that also run other Python tools (MCP servers, scripts, other UIs) end up with a list of identical python.exe entries, which makes it hard to see at a glance which one is ComfyUI, how much RAM it uses, or which one to end.

Proposal

Ship a named launcher with the portable package, e.g. python_embeded\ComfyUI.exe, and use it in the run_*.bat files:

  • it is simply a copy of the embedded python.exe (~100 KB launcher) in the same folder, so python3xx.dll, the stdlib and site-packages resolve exactly as before;
  • its icon resource is replaced with the ComfyUI logo (RT_ICON / RT_GROUP_ICON, e.g. via UpdateResourceW or rcedit at packaging time);
  • Task Manager then shows ComfyUI.exe with the ComfyUI icon.

I tested this locally: a copied embedded python.exe with a replaced icon runs main.py unchanged (torch, CUDA and custom nodes import as usual). Nothing in ComfyUI itself has to change. Only the launch scripts and the packaging step would.

Notes
  • Scripts that look for ComfyUI by process name (python.exe + main.py in the command line) would need to accept ComfyUI.exe as well. Keeping python.exe in the package keeps everything else working.
  • The Desktop app already shows a proper name/icon. This is only about the portable build.
Dominant language
Python
Stars
150k
Forks
17.9k
Avg merge
1d 1h
Merged PRs (30d)
181

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Comfy-Org/ComfyUI

All issues in Comfy-Org/ComfyUI

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.