Error when trying to disable a startup program
See original GitHub issueLog 2023-01-14.txt
Exception message:
Flow Launcher version: 1.11.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True
Python Path: D:\all\all\Python\Python 3.11.1\pythonw.exe
Node Path:
Date: 01/14/2023 15:45:26
Exception:
System.IO.InvalidDataException: Traceback (most recent call last):
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\run.py", line 12, in <module>
WindowsStartup()
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\lib\flox\flox.py", line 104, in __init__
super().__init__()
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\lib\flox\launcher.py", line 28, in __init__
results = request_method(*request_parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\plugin\windows_startup.py", line 86, in toggle
self.change_program(prog, prog.toggle)
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\plugin\windows_startup.py", line 65, in change_program
method()
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\plugin\startup.py", line 112, in toggle
self.disable()
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\plugin\startup.py", line 107, in disable
self._set_registry_value(self._base_key, self._reg_path, self.name, DISABLED)
File "D:\all\all\FlowLauncher\app-1.11.0\UserData\Plugins\Windows Startup-1.0.2\plugin\startup.py", line 62, in _set_registry_value
with reg.OpenKey(base_key, path, 0, reg.KEY_ALL_ACCESS) as key_root:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [WinError 5] Access is denied
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 287
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 292
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.<>c__DisplayClass19_0.<<ParseResults>b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 139
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 276
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Issue Analytics
- State:
- Created 8 months ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Unable to disable startup programs from Task Manager
Hi there,. I want to disable the un-needed programs that start-up in Windows 8. I've been redirected to the Task Manager from msconfig,...
Read more >Basic Computer Skills: Disable Applications from Running ...
Select any program in the list and click the Disable button if you don't want it to run on startup. Windows 8 Task...
Read more >How to Fix Windows 10 Programs When They Fail ...
Right-click the Start button and select Task Manager. · Open the Startup tab. · Check the program's status. If it's set to Disabled,...
Read more >Prevent programs from starting automatically in Windows
Right-click the program you don't want to open at startup and click Delete. If a shortcut you want in the Startup folder is...
Read more >How to Remove Startup Programs
2. Select the Startup tab. Highlight any progam you don't want to start automatically, then click Disable. This will only prevent programs from ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @TheBestPessimist , this error seems to come from the Windows Startup plugin, have you tried posting there? I imagine the plugin itself could handle this error and maybe request admin access itself when needed?
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.