From 99ca4093f285b15f0efc422b2295ee02beb52f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BC=98=E9=9F=AC?= Date: Sat, 6 Mar 2021 13:30:18 +0800 Subject: [PATCH 1/2] Add Open Log Location command to sys plugin --- Plugins/Flow.Launcher.Plugin.Sys/Main.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs index ca971b3f960..8828f3cef69 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.IO; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Forms; using System.Windows.Interop; using Flow.Launcher.Infrastructure; +using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Plugin.SharedCommands; using Application = System.Windows.Application; using Control = System.Windows.Controls.Control; @@ -267,6 +269,18 @@ private List Commands() context.API.CheckForNewUpdate(); return true; } + }, + new Result + { + Title = "Open Log Location", + SubTitle = "Open Log Position", + IcoPath = "Images\\app.png", + Action = c => + { + var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version); + Process.Start("explorer".SetProcessStartInfo(arguments: logPath)); + return true; + } } }); return results; From f7ded13c0a01a48af317fd5568db3aecb3828456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BC=98=E9=9F=AC?= Date: Sat, 6 Mar 2021 18:58:19 +0800 Subject: [PATCH 2/2] Version Bump --- Plugins/Flow.Launcher.Plugin.Sys/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json index 5c66b73dd42..844bcfb53ad 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json +++ b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json @@ -4,7 +4,7 @@ "Name": "System Commands", "Description": "Provide System related commands. e.g. shutdown,lock,setting etc.", "Author": "qianlifeng", - "Version": "1.2.1", + "Version": "1.2.2", "Language": "csharp", "Website": "https://github.com/Flow-Launcher/Flow.Launcher", "ExecuteFileName": "Flow.Launcher.Plugin.Sys.dll",