You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I start NyaoVim, even if I don't specify a file/folder, the first buffer to be opened is always the path <prefix>/lib/node_modules/nyaovim, where <prefix> is the location where I installed NyaoVim.
which only works if the binary is called electron. This is fragile and can break easily.
When running on NixOS by the time the code above runs the binary is actually .electron-wrapped, resulting in electron_argc = 1 which in turn causes <prefix>/lib/node_modules/nyaovim to be kept as 2nd argument.
On my system, since the folder where the binary lives is called electron I worked around the problem by using:
As I understand, the goal here is to distinguish between the two execution modes, NyaoVim.app and electron. Can this be fixed by some other means instead of matching the name of the binary?
The text was updated successfully, but these errors were encountered:
unode
changed the title
NyaoVim always starts with two buffers open and <prefix>/lib/node_modules/nyaovim first
NyaoVim always starts with two open buffers
May 2, 2018
When I start NyaoVim, even if I don't specify a file/folder, the first buffer to be opened is always the path
<prefix>/lib/node_modules/nyaovim
, where<prefix>
is the location where I installed NyaoVim.The problem is caused by the code:
NyaoVim/renderer/nyaovim-app.ts
Line 237 in 99db8fa
which only works if the binary is called
electron
. This is fragile and can break easily.When running on NixOS by the time the code above runs the binary is actually
.electron-wrapped
, resulting inelectron_argc = 1
which in turn causes<prefix>/lib/node_modules/nyaovim
to be kept as 2nd argument.On my system, since the folder where the binary lives is called
electron
I worked around the problem by using:however this is equally fragile...
As I understand, the goal here is to distinguish between the two execution modes, NyaoVim.app and electron. Can this be fixed by some other means instead of matching the name of the binary?
The text was updated successfully, but these errors were encountered: