From b559a8c47b45aa1a25b783acbce160ceba273f04 Mon Sep 17 00:00:00 2001 From: John Long <johnlongs77@outlook.com> Date: Sat, 23 Nov 2024 23:31:45 +0800 Subject: [PATCH] release: v2.2.0 --- slickcmd/src/main_win.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slickcmd/src/main_win.rs b/slickcmd/src/main_win.rs index 306d846..644b079 100644 --- a/slickcmd/src/main_win.rs +++ b/slickcmd/src/main_win.rs @@ -1,7 +1,7 @@ use crate::global::GLOBAL; use crate::options_dlg::OptionsDlg; use slickcmd_common::winproc::{wndproc, WinProc}; -use slickcmd_common::{consts::*, win32}; +use slickcmd_common::{consts::*, utils, win32}; use std::env; use std::ffi::c_void; use std::mem::size_of; @@ -77,7 +77,8 @@ impl MainWin { } fn launch_cmd(&self) { - win32::shell_execute(self.hwnd, "open", "cmd.exe", None, None, SW_SHOWNORMAL); + let home = utils::get_home_dir(); + win32::shell_execute(self.hwnd, "open", "cmd.exe", None, Some(&home), SW_SHOWNORMAL); } fn process_tray_callback(&mut self, wparam: WPARAM, lparam: LPARAM) {