mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[idd] helper: open the IDD log directory
The interactive Helper now writes its own log under LocalAppData so it can run with the desktop user token. The tray menu should still take users to the system-wide IDD and service logs under ProgramData. Expose the log-directory resolver and have Open log directory request the ProgramData location explicitly. Keep Helper log storage unchanged.
This commit is contained in:
@@ -196,8 +196,13 @@ LRESULT CNotifyWindow::onNotifyIcon(UINT uEvent, WORD wIconId, int x, int y)
|
||||
switch (TrackPopupMenu(m_menu, TPM_RETURNCMD | TPM_NONOTIFY, x, y, 0, m_hwnd, NULL))
|
||||
{
|
||||
case ID_MENU_SHOW_LOG:
|
||||
ShellExecute(m_hwnd, L"open", g_debug.logDir(), NULL, NULL, SW_NORMAL);
|
||||
{
|
||||
const std::wstring logDir =
|
||||
CDebug::GetLogDir(CDebug::Location::ProgramData);
|
||||
if (!logDir.empty())
|
||||
ShellExecute(m_hwnd, L"open", logDir.c_str(), NULL, NULL, SW_NORMAL);
|
||||
break;
|
||||
}
|
||||
case ID_MENU_SHOW_CONFIG:
|
||||
DEBUG_INFO("Config window opened");
|
||||
m_config.reset(new CConfigWindow());
|
||||
|
||||
Reference in New Issue
Block a user