diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 2b7db38cf..97b176ed4 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -556,4 +556,4 @@ namespace Flow.Launcher } } } -} \ No newline at end of file +} diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Images/desktop.png b/Plugins/Flow.Launcher.Plugin.Sys/Images/desktop.png new file mode 100644 index 000000000..cec17d345 Binary files /dev/null and b/Plugins/Flow.Launcher.Plugin.Sys/Images/desktop.png differ diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Images/mycomputer.png b/Plugins/Flow.Launcher.Plugin.Sys/Images/mycomputer.png new file mode 100644 index 000000000..0e190cdb9 Binary files /dev/null and b/Plugins/Flow.Launcher.Plugin.Sys/Images/mycomputer.png differ diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml index 46dcffdbf..ab37ccd64 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml @@ -1,8 +1,9 @@ - + - + Command Description @@ -16,6 +17,9 @@ Tweak this app Put computer to sleep Empty recycle bin + Open recycle bin + Open my computer + Desktop Hibernate computer Save all Flow Launcher settings Refreshes plugin data with new content @@ -24,7 +28,7 @@ Visit Flow Launcher's documentation for more help and how to use tips Open the location where Flow Launcher's settings are stored - + Success All Flow Launcher settings saved Reloaded all applicable plugin data diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Languages/ko.xaml b/Plugins/Flow.Launcher.Plugin.Sys/Languages/ko.xaml index 3442b180a..601835612 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Languages/ko.xaml +++ b/Plugins/Flow.Launcher.Plugin.Sys/Languages/ko.xaml @@ -1,7 +1,10 @@ - - + + - + 명령어 설명 @@ -15,6 +18,9 @@ 이 프로그램을 조정합니다 PC를 절전모드로 전환 휴지통 비우기 + 휴지통 열기 + 내 컴퓨터 + 바탕 화면 최대 절전 모드 Flow Launcher 설정 저장 플러그인 데이터를 새 콘텐츠와 함께 다시 로드 @@ -23,7 +29,7 @@ Flow Launcher의 도움말 및 사용안내 Flow Launcher의 설정이 저장된 위치 열기 - + 성공 모든 Flow Launcher 설정을 저장했습니다 적용 가능한 모든 플러그인 데이터를 다시 로드했습니다 diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs index 808f8ef19..d05cbdfbf 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs @@ -192,6 +192,42 @@ namespace Flow.Launcher.Plugin.Sys } }, new Result + { + Title = "My Computer", + SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmycomputer"), + IcoPath = "Images\\mycomputer.png", + Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7f4"), + Action = c => + { + // http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html + // FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED)) + // 0 for nothing + { + System.Diagnostics.Process.Start("explorer.exe", "shell:mycomputerfolder"); + } + + return true; + } + }, + new Result + { + Title = "Desktop", + SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmydesktop"), + IcoPath = "Images\\desktop.png", + Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7fb"), + Action = c => + { + // http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html + // FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED)) + // 0 for nothing + { + System.Diagnostics.Process.Start("explorer.exe", "shell:desktop"); + } + + return true; + } + }, + new Result { Title = "Empty Recycle Bin", SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_emptyrecyclebin"), @@ -215,6 +251,21 @@ namespace Flow.Launcher.Plugin.Sys } }, new Result + { + Title = "Open Recycle Bin", + SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"), + IcoPath = "Images\\recyclebin.png", + Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"), + Action = c => + { + { + System.Diagnostics.Process.Start("explorer.exe", "shell:RecycleBinFolder"); + } + + return true; + } + }, + new Result { Title = "Exit", SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_exit"),