flyingpie / windows-terminal-quake

Enable Quake-style dropdown for (almost) any application.
https://wtq.flyingpie.nl
MIT License
598 stars 39 forks source link

windows-terminal-quake can't run wt.exe #61

Closed nikolayperin closed 3 years ago

nikolayperin commented 3 years ago

Безымянный

flyingpie commented 3 years ago

Hey @m1k0lay! Thank you for reporting the issue :) Could you provide a translation, since my Russian currently is a bit rusty :D

nikolayperin commented 3 years ago

"Couldn't find the specified file"

flyingpie commented 3 years ago

Thanks you for helping me out :)

nikolayperin commented 3 years ago
flyingpie commented 3 years ago

@m1k0lay Could you try to run both apps from a folder with no spaces? It should work, but that way we can figure out if that's the problem.

nikolayperin commented 3 years ago

@m1k0lay Could you try to run both apps from a folder with no spaces? It should work, but that way we can figure out if that's the problem.

2021-02-13 19:24:45.922 +03:00 [INF] Windows Terminal Quake started 2021-02-13 19:24:46.005 +03:00 [ERR] Error creating process: 'Не удается найти указанный файл' 2021-02-13 19:24:46.036 +03:00 [ERR] Error creating process: 'Не удается найти указанный файл' 2021-02-13 19:24:46.097 +03:00 [ERR] Error creating process: 'Не удается найти указанный файл' 2021-02-13 19:24:46.203 +03:00 [ERR] Error creating process: 'Не удается найти указанный файл' 2021-02-13 19:24:46.462 +03:00 [ERR] Error creating process: 'Не удается найти указанный файл' 2021-02-13 19:24:46.969 +03:00 [WRN] Error: Не удается найти указанный файл System.ComponentModel.Win32Exception (0x80004005): Не удается найти указанный файл в System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) в WindowsTerminalQuake.Native.TerminalProcess.GetOrCreate(String[] args) в WindowsTerminalQuake.Native.TerminalProcess.<>c__DisplayClass6_0.<Get>b__0() в Polly.Policy.<>c__DisplayClass114_01.b__0(Context ctx, CancellationToken ct) в Polly.Retry.RetryEngine.Implementation[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Action4 onRetry, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider) в Polly.Retry.RetryPolicy.Implementation[TResult](Func3 action, Context context, CancellationToken cancellationToken) в Polly.Policy.Execute[TResult](Func3 action, Context context, CancellationToken cancellationToken) в Polly.Policy.Execute[TResult](Func1 action) в WindowsTerminalQuake.Toggler..ctor(String[] args) в WindowsTerminalQuake.Program.Main(String[] args) `

fmiqbal commented 3 years ago

I got similar error recently, I am using version 1.1.1 I am on Windows Insider Build 21327.1000 it doesn't reported on event viewer

I am running in D:\terminal image image

Log files

2021-03-04 19:45:20.642 +07:00 [INF] Windows Terminal Quake started
2021-03-04 19:45:21.182 +07:00 [ERR] Error creating process: 'The system cannot find the path specified'
2021-03-04 19:45:21.225 +07:00 [ERR] Error creating process: 'The system cannot find the path specified'
2021-03-04 19:45:21.302 +07:00 [ERR] Error creating process: 'The system cannot find the path specified'
2021-03-04 19:45:21.430 +07:00 [ERR] Error creating process: 'The system cannot find the path specified'
2021-03-04 19:45:21.697 +07:00 [ERR] Error creating process: 'The system cannot find the path specified'
2021-03-04 19:45:22.228 +07:00 [WRN] Error: The system cannot find the path specified
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the path specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at WindowsTerminalQuake.Native.TerminalProcess.GetOrCreate(String[] args)
   at WindowsTerminalQuake.Native.TerminalProcess.<>c__DisplayClass6_0.<Get>b__0()
   at Polly.Policy.<>c__DisplayClass114_0`1.<Execute>b__0(Context ctx, CancellationToken ct)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at WindowsTerminalQuake.Toggler..ctor(String[] args)
   at WindowsTerminalQuake.Program.Main(String[] args)
fmiqbal commented 3 years ago

I may have problem on my end, not the project, because I can't manually open C:\Users\fikrimi\AppData\Local\Microsoft\WindowsApps\wt.exe either

image

eventhough its there image

Repairing the "Windows Terminal" Apps from Settings app, make it work again

flyingpie commented 3 years ago

@m1k0lay There have been a couple mentions of this issue by now, and I wonder if wt.exe is not fully available from all contexts on every machine.

Anyway, I added a setting called "WindowsTerminalCommand" in a new release. If you could try this, changing the path to the actual path to wt.exe:

{
    "WindowsTerminalCommand": "C:\\Users\\path\\to\\wt.exe"
}

This setting allows for configuring the path to wt.exe manually, so we don't need to rely on it being available through and environment variable.

The release can be found here ('windows-terminal-quake-1.2.0-2021-04-30_1752.zip'):

https://github.com/flyingpie/windows-terminal-quake/releases/tag/v1.2.0

nikolayperin commented 3 years ago

Снимок экрана 2021-05-19 165628 Безымянный Can't start

flyingpie commented 3 years ago

@m1k0lay The path should start with "C:\Program Files", it looks like you're missing a set of slashes there.

Could you try that and see if it changes anything?

nikolayperin commented 3 years ago

image Works! But i get this message