Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspaces Capture Won't Pick Up All Apps #34699

Closed
tompetrocelli opened this issue Sep 7, 2024 · 7 comments
Closed

Workspaces Capture Won't Pick Up All Apps #34699

tompetrocelli opened this issue Sep 7, 2024 · 7 comments
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Workspaces Refers to the Workspaces utility

Comments

@tompetrocelli
Copy link

Microsoft PowerToys version

0.84.0

Installation method

PowerToys auto-update, Microsoft Store

Running as admin

Yes

Area(s) with issue?

Workspaces

Steps to reproduce

Open up the following apps:
Visual Studio Code
DevToys
Terminal
Git GUI

With all windows displayed (i.e. not minimized) Launch Workspaces, then Create Workspace. The Capture dialog is displayed but GitHub GUI is not "captured".

✔️ Expected Behavior

All open Windows are captured.

❌ Actual Behavior

Git GUI is not captured. The other three are.

Other Software

Git Gui

@tompetrocelli tompetrocelli added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 7, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@plante-msft plante-msft added the Product-Workspaces Refers to the Workspaces utility label Sep 7, 2024
@donlaci
Copy link
Collaborator

donlaci commented Sep 10, 2024

@tompetrocelli
Hi, thanks for your feedback!
We are looking for a solution for the issue. It is not a simple one.
Until we find it, you can try the following workaround to have git GUI in your workspace:
1: edit your workspaces.json file located in the directory: c:\Users\ ... \AppData\Local\Microsoft\PowerToys\Workspaces
2. find your workspace among the listed workspaces and its "applications" section
3. add a new application to the list (copy+paste) or by rewriting an existing app in the list. It should look like:
{
"application": "git gui",
"application-path": "C:\Program Files\Git\mingw64\bin\wish.exe",
"title": "Git Gui (PowerToys) C:/Janea/Project/PowerToys",
"package-full-name": "",
"app-user-model-id": "",
"command-line-arguments": "c:\Users\ ...
\AppData\Local\Microsoft\PowerToys\Workspaces\start_git_gui.tcl",
"is-elevated": false,
"can-launch-elevated": false,
"minimized": false,
"maximized": false,
"position": {
"X": 0,
"Y": 0,
"width": 1918,
"height": 1039
},
"monitor": 7
}
4. Modify the parameters like location, monitor id as you wish. The important attributes are the "application-path" which should point to the wish.exe file typically located in "C:\Program Files\Git\mingw64\bin".
5. The next important attribute is the "command-line-arguments", which should point to a *.tcl file. It could be located anywhere (c:\temp is fine).
6. You have to create the file, its content should be something like this:
cd "C:\Janea\Project\PowerToys"
exec "c:/Program Files/Git/mingw64/bin/git.exe" gui
7. where the directory in the first line is your repository and the directory in the second line is where your git.exe is located.
8. If you did all this correctly, the Wokrspaces utility will launch your git gui app with the repository you specified.

Please give us a feedback if this helped for you. We apologise for the inconvenience, the issue is that some applications, like git gui are launched specially and our utility can't always collect the information from the running app.

@tompetrocelli
Copy link
Author

tompetrocelli commented Sep 10, 2024 via email

@donlaci
Copy link
Collaborator

donlaci commented Feb 14, 2025

Please update to PT version 0.88 and retest. If the issue persists, send us a /bugreport. Thanks!

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Feb 14, 2025
@tompetrocelli
Copy link
Author

This was fixed in a release a little while back.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Feb 14, 2025
@donlaci donlaci closed this as completed Feb 14, 2025
@Olanrewaju
Copy link

Olanrewaju commented Feb 18, 2025

Thank you for the solution. I also noticed that it doesn’t always (but sometimes) pick up minimized applications.

Tom Petrocelli (He/Him)

  • Retired Tech Executive, Writer, and Industry Analyst *

EMail: @.> @.; @.> @.

Phone: 716-912-2074

Social and other Contact Info: https://linktr.ee/tompetrocelli https://linktr.ee/tompetrocelli

Not picking up some minimized apps is still happening as at 18/02/25 on v0.88.0. If this happens, one has to first of all capture all windows maximized, then manually change the settings to minimized. PowerToys team: keep up the good work and thanks for everything.

@donlaci
Copy link
Collaborator

donlaci commented Feb 19, 2025

@Olanrewaju @tompetrocelli
Yes, there is an issue, some packaged apps are not recognized in minimized state. We are working on that issue.
(Yeah, obviously one can workaround this issue by leaving the app normalized then set it to minimized in the Workspaces editor. It is annoying, but working).
Thanks for your feedbacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Workspaces Refers to the Workspaces utility
Projects
Development

No branches or pull requests

4 participants