Giter Site home page Giter Site logo

Comments (15)

ItayShallev avatar ItayShallev commented on May 28, 2024 2

What is popping up? can you share a /bugreport

This window:
image

from powertoys.

mu88 avatar mu88 commented on May 28, 2024 1

@TheJoeFin I think I found the issue: on my machine, I have two different accounts:

  • Mirko
  • MirkoAdmin

I've installed PowerToys via Chocolatey. Chocolatey highly recommends executing it with admin privileges - so did I, i. e. under MirkoAdmin. However, I actually run PowerToys as Mirko - but the scheduled task is registered for MirkoAdmin, although I'm toggling the Run at startup button in PowerToys under my Mirko account:

image

I can easily reproduce the issue:

  • Run Task Scheduler as Mirko → Task Scheduler entry exists as shown in the previous screenshot
  • Run PowerToys as Mirko and disable Run at startup → Task Scheduler entry is still there
  • Manually delete the scheduled task
  • Enable Run at startup (running as Mirko) again → no scheduled task is created
  • Run PowerToys as MirkoAdmin via UAC triggered from Mirko and enable Run at startup → Task Scheduler entry gets created

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

What is popping up? can you share a /bugreport

from powertoys.

mu88 avatar mu88 commented on May 28, 2024

I'm joining this issue as I don't want to file a very similar one/potential duplicate - please correct me if you'd prefer a dedicated issue.

I'm suffering from the problem that PowerToys does not launch when starting Windows. I use PowerToys v.0.79.0 and Windows 11 23H2 (OS Build 22631.3296). As you can see, Run at startup is enabled:

image

However, PowerToys are not started when launching Windows. Furthermore, there is no startup entry in the Windows settings:

image

So I've added a PowerToys shortcut to C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (shell:startup) and now PowerToys successfully start when launching Windows.
However, the PowerToys Settings Dashboard always pops up:

image

Please see the attached PowerToysReport_2024-03-30-13-57-48.zip.

PS: please note that my user has no admin privileges.

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

Here are steps where I added PowerToys to the Task Scheduler to run when a user logs in. Try following these steps to startup automatically and do not add a link to the startup folder in Start or to the Startup section of the Windows Settings app or Task Manager. When I added this to Task Scheduler it started up PowerToys when I logged in and did not open any window.

Please try this and report back if the issue is resolved. /needinfo

Steps shown below:

  1. Create new Task in Task Scheduler
  2. Add an action to launch PowerToys.exe from "C:\Program Files\PowerToys\PowerToys.exe"
  3. Add a trigger to run "At Log on"
  4. Save

Screenshot 2024-04-02 230528
Screenshot 2024-04-02 230554
Screenshot 2024-04-02 230615
Screenshot 2024-04-02 230632
Screenshot 2024-04-02 230659
Screenshot 2024-04-02 230735
Screenshot 2024-04-02 230821
Screenshot 2024-04-02 230835

from powertoys.

mu88 avatar mu88 commented on May 28, 2024

Thx for that hint @TheJoeFin

However, ideally, this can be described as a workaround, but not a solution. The goal should be for the Run at startup button in PowerToys to do what it should do, i. e. start PowerToys when the system starts up.

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

@mu88 part of figuring out the issue is seeing if it can be manually resolved. If that is the case then changes might need to happen around how the installer tries to set up this task, or maybe the code needs more retry logic. Can you confirm following these steps solves the issue for you?

from powertoys.

mu88 avatar mu88 commented on May 28, 2024

I didn't want to appear rude. If that's the case, I'm sorry - I appreciate your help.

I will try the suggestion and get back to you.

from powertoys.

mu88 avatar mu88 commented on May 28, 2024

Okay @TheJoeFin , I've configured a scheduled task, but it does not run at login:

image

However, I manually opened PowerToys and literally clicked the Run at startup toggle a dozen or so times and now PowerToys start ðŸĪŠðŸ™ˆ

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

@mu88 PowerToys relies on Task Scheduler to work, if your test revealed that Task Scheduler does not work, then the issue is with Task Scheduler and not PowerToys. I'm not sure what a solution would be to this scenario. Are there other programs in Task Scheduler which are triggered and launched correctly? /needinfo

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

@mu88 thank you for investigating. Not sure how this gets resolved or if this is an issue with PowerToys that can be resolved. What do you think? /needinfo

from powertoys.

mu88 avatar mu88 commented on May 28, 2024

Good question, but I fear I don't have enough insights to answer it properly ðŸĪ·ðŸŧ‍♂ïļ from a user perspective, I think the use-case Install PowerToys under an admin account and run/start them under a non-admin account seems like a reasonable demand. But of course, I understand that there might be internal/technical reasons for making this hard.

Maybe a good starting point would be if you/your fellow colleagues could reproduce the issue on your side. Because so far it's just me having this problem, right?

Just out of curiosity: what's this /needinfo that you put at the end of your posts? ðŸĪ“

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

Install PowerToys under an admin account and run/start them under a non-admin account

I believe this is the root of the problem. At the very least we should highlight this use case and make sure users understand how PowerToys works. Maybe update the "auto run" UX to highlight which user is setting that setting and when it will trigger.

what's this / need info that you put at the end of your posts?

It is a command for GitHub automation to apply the correct labels and organize issues into projects so the team knows the status if the issue.

from powertoys.

TheJoeFin avatar TheJoeFin commented on May 28, 2024

@jaimecbernardo what do you think about the scenario where PowerToys is installed as an Admin user but then doesn't open at Startup when the standard user signs in. Should/can we update this UI to explain more of the details on exactly what triggers PowerToys to launch.

image

Also I would guess this scenario of admin user installing then not launching during normal user logs in could the source of issues related to PowerToys not starting when expected. Hard to catch that scenario unless we somehow identify that the current running instance is different than the instance used to install PowerToys.

from powertoys.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on May 28, 2024

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

from powertoys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google âĪïļ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.