[PR #46] [MERGED] Use electron that exist in current path #1069

Open
opened 2026-01-29 16:57:05 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/46
Author: @yamachu
Created: 11/7/2017
Status: Merged
Merged: 11/7/2017
Merged by: @robertmuehsig

Base: masterHead: fix/unix_invoke_path


📝 Commits (1)

  • cb20c06 Use electron that exist in current path

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 ElectronNET.CLI/Commands/StartElectronCommand.cs (+1 -1)

📄 Description

bash: line 1: electron: command not found error has occurred in my env(macOSX 10.12.6, use zsh)

$ dotnet electronize start
Start Electron Desktop Application...
.NET Core 向け Microsoft (R) Build Engine バージョン 15.3.409.57025
Copyright (C) Microsoft Corporation.All rights reserved.

  sample -> /Users/yamachu/Project/CSharp/sample/bin/Debug/netcoreapp2.0/osx-x64/sample.dll
  sample -> /Users/yamachu/Project/CSharp/sample/obj/Host/bin/


Start npm install...
npm WARN ElectronNET.Host@1.0.0 No description
npm WARN ElectronNET.Host@1.0.0 No repository field.


Invoke electron - in dir: /Users/yamachu/Project/CSharp/sample/obj/Host/node_modules/.bin
bash: line 1: electron: command not found


dotnet electronize start  10.04s user 1.90s system 84% cpu 14.061 total

So I changed Execute Command that called electron to use current directory's.
This change worked well in my env.

Is there any other solution?

Thanks


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/46 **Author:** [@yamachu](https://github.com/yamachu) **Created:** 11/7/2017 **Status:** ✅ Merged **Merged:** 11/7/2017 **Merged by:** [@robertmuehsig](https://github.com/robertmuehsig) **Base:** `master` ← **Head:** `fix/unix_invoke_path` --- ### 📝 Commits (1) - [`cb20c06`](https://github.com/ElectronNET/Electron.NET/commit/cb20c063cfebff76ce61b1be46ce2b2bc60ea18c) Use electron that exist in current path ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ElectronNET.CLI/Commands/StartElectronCommand.cs` (+1 -1) </details> ### 📄 Description `bash: line 1: electron: command not found` error has occurred in my env(macOSX 10.12.6, use zsh) ``` $ dotnet electronize start Start Electron Desktop Application... .NET Core 向け Microsoft (R) Build Engine バージョン 15.3.409.57025 Copyright (C) Microsoft Corporation.All rights reserved. sample -> /Users/yamachu/Project/CSharp/sample/bin/Debug/netcoreapp2.0/osx-x64/sample.dll sample -> /Users/yamachu/Project/CSharp/sample/obj/Host/bin/ Start npm install... npm WARN ElectronNET.Host@1.0.0 No description npm WARN ElectronNET.Host@1.0.0 No repository field. Invoke electron - in dir: /Users/yamachu/Project/CSharp/sample/obj/Host/node_modules/.bin bash: line 1: electron: command not found dotnet electronize start 10.04s user 1.90s system 84% cpu 14.061 total ``` So I changed Execute Command that called electron to use current directory's. This change worked well in my env. Is there any other solution? Thanks --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:57:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1069