ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

New console is opened instead of just activating in Quake mode on Windows 10

Open EugeneTM opened this issue 7 years ago • 13 comments

Versions

ConEmu build: 180506 [64]. OS version: Windows 10 x64 1803 Rus Used shell: git-bash, cmd, powershell.

Problem description

New console tab is opened when activating in Quake mode on Windows 10 Taskbar.

Steps to reproduce

  1. Enable Quake Mode.
  2. Hide console.
  3. Press "locked ConEmu" icon on Windows 10 Taskbar ("Single button for all consoles").

Actual results

ConEmu Quake mode activates, a new console is created.

Expected results

ConEmu Quake mode activates, no new console is created.

EugeneTM avatar May 19 '18 15:05 EugeneTM

You started normal ConEmu console, but change it behavior after that. I suppose both instances have different AppID - About/SysInfo.

Maximus5 avatar May 19 '18 15:05 Maximus5

Tried again. It seems not true, a new default console tab is created every time I activate it through Taskbar instead of Ctrl-`. Even if I kill all related processes and start it anew.

EugeneTM avatar May 19 '18 15:05 EugeneTM

Check AppID

Maximus5 avatar May 19 '18 16:05 Maximus5

Normally started AppID: 49922b4d6ae2ce22bcf871b666573d5f::166 Quake mode AppID: 49922b4d6ae2ce22bcf871b666573d5f::166 [lost focus, it hid] Task bar activated AppID: 49922b4d6ae2ce22bcf871b666573d5f::166

EugeneTM avatar May 19 '18 16:05 EugeneTM

Did you save settings after activating quake mode?

What are the properties of pinned shortcut?

Maximus5 avatar May 19 '18 16:05 Maximus5

Yes, I saved.

Tried to re-pin again after saving and restarting, still opens new console.

If not in quake mode and is hidden by Ctrl-`, then TaskBar pinned button launches a new window, not even a tab. And even in this case they both share the same AppID.

Update: pinned shortcut is "C:\Program Files\ConEmu\ConEmu64.exe", "C:\Program Files\ConEmu".

EugeneTM avatar May 19 '18 16:05 EugeneTM

If not in quake mode and is hidden by Ctrl-`, then TaskBar pinned button launches a new window

You saved settings for Quake mode, don't you? So, why do you talk about "not in quake mode"?

Maximus5 avatar May 19 '18 16:05 Maximus5

Yes, I saved in q/mode, then reported.

Then I turned it off and restarted again, then tried Ctrl-` and activating of hidden not-in-q-mode software using taskbar. And reported again.

EugeneTM avatar May 19 '18 16:05 EugeneTM

I'm totally lost. What are you doing, why, and what is the problem?

When you change Q mode pinned shortcut is not obliged to restore application in different mode.

Maximus5 avatar May 19 '18 17:05 Maximus5

Thank you for your patience. Let me clear it.

Q-mode: hiding and then reactivating the window using Taskbar creates a new console tab.

Normal mode: hiding (Ctrl-`) and then reactivating the window using Taskbar creates a new window.

EugeneTM avatar May 22 '18 06:05 EugeneTM

  • Close (terminate) all ConEmu instances
  • Change properties of the TaskBar pinned item - add -log switch
  • Reproduce

Maximus5 avatar Jul 13 '18 17:07 Maximus5

I get the same behavior. I tried to add -log to the shortcut but it didn't seem to like that.

I have settings Single Instance Mode Quake Style slide down

...both enabled.

I think the issue is due to the icon being pinned. Normally when not pinned in Quake Mode, when the console is hidden, there is no task icon. So, you can't click on it to open a new instance/tab. But, if pinned clicking on it, opens a new instance/tab.

Even if you turn off quake mode and leave single instance on, it doesn't seem to respect that. For example... open a powershell window and run cmder. Then run cmder again, you will get a second instance. This seems like maybe a conemu setting and not a cmder setting?

Workaround - turn off quake mode, you can still use the hotkey to open/close the console as well as clicking on the icon. You just don't get the fancy slide down animation.

FYI - this is running as a portable app, installed by scoop. Not sure if that makes a difference.

PilotBob avatar Mar 27 '19 16:03 PilotBob

Then run cmder again, you will get a second instance.

@PilotBob ConEmu is not cmder. cmder.exe is a third-party launcher for ConEmu.exe. I don't know exactly which exe have you pinned and what have you clicked in the task bar, but I can give a recommendation - use ConEmu without cmder. There is no profit in third-party launcher.

Maximus5 avatar Mar 31 '19 23:03 Maximus5