Git Product home page Git Product logo

window-services's Introduction

window-services

List, Start & Stop Window services

(Tested on Win10 & Win11)

Installation:

pm install window-services

Keyword:

ws

Special Thanks:

@taooceros & @onesounds

Buy Me A Coffee

window-services's People

Contributors

garulf avatar github-actions[bot] avatar

Stargazers

 avatar Ozan Ozyegen avatar  avatar

Watchers

 avatar  avatar

Forkers

pstaszko

window-services's Issues

Error

Please open new issue in: https://github.com/Garulf/window-services/issues/new

  1. upload log file: C:\Users\huoyan1231\AppData\Roaming\FlowLauncher\Logs\1.14.0\2023-04-01.txt
  2. copy below exception message

Flow Launcher version: 1.14.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True

Python Path: C:\Users\huoyan1231\AppData\Local\Programs\Python\Python38\pythonw.exe
Node Path: C:\Program Files\nodejs\node.exe
Date: 04/01/2023 22:04:54
Exception:
Window Services Exception:
Websites: https://github.com/Garulf/window-services
Author: Garulf
Version: 1.1.5
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\run.py", line 12, in
WindowServices()
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\flox.py", line 104, in init
super().init()
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\launcher.py", line 24, in init
methods = inspect.getmembers(self, predicate=inspect.ismethod)
File "C:\Users\huoyan1231\AppData\Local\Programs\Python\Python38\lib\inspect.py", line 350, in getmembers
value = getattr(object, key)
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\flox.py", line 228, in app_settings
with open(os.path.join(self.appdata, 'Settings', 'Settings.json'), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Settings\Settings.json'

---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\run.py", line 12, in
WindowServices()
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\flox.py", line 104, in init
super().init()
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\launcher.py", line 24, in init
methods = inspect.getmembers(self, predicate=inspect.ismethod)
File "C:\Users\huoyan1231\AppData\Local\Programs\Python\Python38\lib\inspect.py", line 350, in getmembers
value = getattr(object, key)
File "C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Window Services-1.1.5\lib\flox\flox.py", line 228, in app_settings
with open(os.path.join(self.appdata, 'Settings', 'Settings.json'), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\huoyan1231\AppData\Local\FlowLauncher\app-1.14.0\Settings\Settings.json'

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 294
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 299
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 314
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 839
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 840
at System.Threading.Tasks.Task.<>c.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)

Restart service option

Hi,

I wanted to ask if it would be possible to add a restart option for the services?

Thanks

Plugin crash after run

Plugin crash after run. It show crash window only.

Crash log

Flow Launcher version: 1.8.3
OS Version: Microsoft Windows NT 10.0.19041.0
IntPtr Length: 8
x64: True

Python Path: C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Python\Python310\pythonw.exe
Date: 11/08/2021 19:56:44
Exception:
System.IO.InvalidDataException: Window Services|Traceback (most recent call last):
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\run.py", line 12, in
WindowServices()
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\lib\flox\flox.py", line 82, in init
super().init()
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\lib\flox\launcher.py", line 28, in init
results = request_method(*request_parameters)
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\lib\flox\flox.py", line 89, in _query
self.query(query)
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\plugin\window_services.py", line 32, in query
services = s.get_services()
File "C:\Users\WDAGUtilityAccount\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.1\plugin\services.py", line 37, in get_services
services = sp.check_output("sc query type= service state= all", shell=True).decode("utf-8").split("\r\n\r\n")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 81429: invalid start byte

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 258
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 272
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 291
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 192
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass116_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 591
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 565
at System.Threading.Tasks.Task.<>c.b__140_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)

Error

2023-02-13.txt
Flow Launcher version: 1.13.0
OS Version: Microsoft Windows NT 10.0.19045.0
IntPtr Length: 8
x64: True

Python Path: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\venv\scripts\nt\pythonw.exe
Node Path:
Date: 02/13/2023 14:01:20
Exception:
Window Services Exception:
Websites: https://github.com/Garulf/window-services
Author: Garulf
Version: 1.1.5
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: An error occurred trying to start process 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\venv\scripts\nt\pythonw.exe' with working directory 'C:\Users\gj243\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.5'. 拒绝访问。
---> System.ComponentModel.Win32Exception (5): An error occurred trying to start process 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\venv\scripts\nt\pythonw.exe' with working directory 'C:\Users\gj243\AppData\Roaming\FlowLauncher\Plugins\Window Services-1.1.5'. 拒绝访问。
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 247
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 314
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 822
at System.Threading.Tasks.Task.<>c.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)

not working with iTunes services

I normally keep iTunes services set to manual and I only start them when I need to sync my phone.
Today I found out that the Bonjour Service cannot be started by this plugin. Unfortunately I have no clue why.

Anyway, thank you for this plugin which I appreciate a lot.

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.