Skip to content

Option to run Wan2GP as a desktop app#1752

Open
tylandercasper wants to merge 3 commits into
deepbeepmeep:mainfrom
tylandercasper:patch-1
Open

Option to run Wan2GP as a desktop app#1752
tylandercasper wants to merge 3 commits into
deepbeepmeep:mainfrom
tylandercasper:patch-1

Conversation

@tylandercasper

@tylandercasper tylandercasper commented Apr 29, 2026

Copy link
Copy Markdown

If you pass the parameter --app= to the chrome exe it will start a new instance of chrome without any of the browser UI making it appear like a normal app.

This PR adds a new CLI arg "--run-as-chrome-app" which takes the location of the chrome exe
When the server is started it will open the url in app mode.
I also added some basic cleanup so if you close the app it will stop the server and if you stop the server it will close the app.

The beauty of this is that you can now launch Wan2GP in a single step.

For Instance I made a launch.bat file with the text
start "Wan2GP Console" <conda_location>\conda.exe run --live-stream -n wan2gp python wgp.py --run-as-chrome-app "C:\Program Files\Google\Chrome\Application\chrome.exe"

(This starts a console with the title "Wan2GP Console" and than loads the app using conda)

Wan2gp_as_app image

adds --run-as-chrome-app that takes the location of the chrome exe. It will launch the url in app mode which makes it look like it's a full app
@tylandercasper tylandercasper changed the title add arg to launch Wan2GP as a chrome app Option to run Wan2GP run like a desktop app May 4, 2026
@tylandercasper tylandercasper changed the title Option to run Wan2GP run like a desktop app Option to run Wan2GP run as a desktop app May 4, 2026
@tylandercasper tylandercasper changed the title Option to run Wan2GP run as a desktop app Option to run Wan2GP as a desktop app May 4, 2026
we now launch chrome with a special profile just for the app. This allows it to run separately from any other chrome instances and prevents any accidental drag and drops from opening as new tab in your browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant