Skip to content

Commit

Permalink
release: v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlng committed Nov 23, 2024
1 parent 50ea0ab commit b559a8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions slickcmd/src/main_win.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b559a8c

Please sign in to comment.