Skip to content

Commit

Permalink
Updated scoop manifest for v0.4.1
Browse files Browse the repository at this point in the history
Fixed issue on connection.
  • Loading branch information
Gerardo Grignoli committed Dec 18, 2019
1 parent e2d4f98 commit 5e57afd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/gsudo/Rpc/NamedPipeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public async Task<Connection> Connect(ElevationRequest elevationRequest, int? cl
{
pipeName = NamedPipeServer.GetPipeName(user, callerProcess.Id);
// Does the pipe exists?
if (!System.IO.Directory.EnumerateFiles(@"\\.\pipe\", pipeName).Any() && timeoutMilliseconds <= 300)
{
// try grandfather.
callerProcess = callerProcess.ParentProcess();
}
if (System.IO.Directory.EnumerateFiles(@"\\.\pipe\", pipeName).Any() && timeoutMilliseconds <= 300)
break;

// try grandfather.
callerProcess = callerProcess.ParentProcess();
}
}

Expand Down
14 changes: 9 additions & 5 deletions src/scoop-package/gsudo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"version": "0.4",
"url": "https://github.com/gerardog/gsudo/releases/download/v0.4/gsudo.v0.4.zip",
"hash":"8D2BDA6B57FD30D8723ACC7207F270ED86F45178044F80546436C5022B0517C2",
"bin": [ "gsudo.exe",["gsudo.exe", "sudo"] ]
}
"version": "0.4.1",
"url": "https://github.com/gerardog/gsudo/releases/download/v0.4.1/gsudo.v0.4.1.zip",
"hash":"5A7C2BDAA5E2C399C99BD396FEA6E35A3267C62D901E7326959B17B1ABAF4A3B",
"bin": [ "gsudo.exe",["gsudo.exe", "sudo"] ],
"homepage": "https://github.com/gerardog/gsudo",
"checkver": {
"github" : "https://github.com/gerardog/gsudo"
}
}

0 comments on commit 5e57afd

Please sign in to comment.