Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
7.66k stars 301 forks source link

BUG: Flow Launcher not gracefully shutting down when invoking taskkill #2604

Open xIceFox opened 6 months ago

xIceFox commented 6 months ago

Checks

Problem Description

During developement of my plugin, I noticed that flow launcher is not shutting down gracefully when using "taskkill /IM Flow.Launcher.exe" to stop the app. Causing me to use the /F (Force) flag. I don't think this is intended so reporting this here. This is especially useful to deploy .NET plugin builds automatically by creating a run config that does:

  1. Kill FlowLauncher
  2. Deploy new .dll to plugin folder
  3. Start FlowLauncher again

Interesting is that when I Invoke the taskkill command, the shortcut to open FlowLauncher doesn't work anymore.

To Reproduce

  1. Start FlowLauncher
  2. Invoke "taskkill /IM Flow.Launcher.exe"
  3. Program is still running, but shortcut for search doesn't work anymore

PowerShell Commands:

Start-Process C:\Users\[user]\AppData\Local\FlowLauncher\Flow.Launcher.exe
taskkill /im Flow.Launcher.exe
tasklist /FI "IMAGENAME eq Flow*"

See Screenshot. I waited few seconds between the commands of course.

Screenshots

image

Flow Launcher Version

1.17.2

Windows Build Number

10.0.22631.3155

Error Log

I did a fresh log clear before copying the log. But it does not seem to log the taskkill event in the log.


15:59:17.1556+01:00 - INFO  - App.OnStartup - Begin Flow Launcher startup ----------------------------------------------------
15:59:17.1556+01:00 - INFO  - App.OnStartup - Runtime info:
Flow Launcher version: 1.17.2
OS Version: 22631.3155
IntPtr Length: 8
x64: True
15:59:17.3208+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Process Killer> is <1ms>
15:59:17.3208+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <ModdedMinecraft> is <1ms>
15:59:17.3208+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Plugin Indicator> is <1ms>
15:59:17.3208+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <System Commands> is <1ms>
15:59:17.3304+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <URL> is <19ms>
15:59:17.3304+01:00 - INFO  - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json
15:59:17.3304+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Web Searches> is <20ms>
15:59:17.3304+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Shell> is <21ms>
15:59:17.3439+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Calculator> is <26ms>
15:59:17.3439+01:00 - INFO  - Flow.Launcher.Plugin.Program.Main - Preload programs cost <6ms>
15:59:17.3439+01:00 - INFO  - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <225>
15:59:17.3439+01:00 - INFO  - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <46>
15:59:17.3439+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Windows Settings> is <29ms>
15:59:17.3439+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Browser Bookmarks> is <32ms>
15:59:17.3611+01:00 - INFO  - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json
15:59:17.3611+01:00 - INFO  - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json
15:59:17.3611+01:00 - INFO  - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json
15:59:17.3611+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Program> is <48ms>
15:59:17.3611+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Explorer> is <49ms>
15:59:17.3778+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Steam Search> is <58ms>
15:59:17.4659+01:00 - INFO  - CommunityPluginSource.FetchAsync - Loaded 151 plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json
15:59:17.4680+01:00 - INFO  - PluginManager.InitializePlugins - Total init cost for <Plugins Manager> is <150ms>
15:59:17.6187+01:00 - INFO  - App.OnStartup - Dependencies Info:
Python Path: 
Node Path: 
15:59:17.8267+01:00 - INFO  - App.OnStartup - End Flow Launcher startup ----------------------------------------------------  
15:59:17.8267+01:00 - INFO  - App.OnStartup - Startup cost <728ms>
15:59:18.4111+01:00 - INFO  - ImageLoader.Initialize - Preload images cost <1059ms>
15:59:18.4111+01:00 - INFO  - ImageLoader.Initialize - Number of preload images is <91>, Images Number: 91, Unique Items 58
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] commented 3 months ago

This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.