Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Nano and vim executables get stuck when opened with gsudo on cmd #302

Closed
AngelAGBL opened this issue Sep 16, 2023 · 5 comments
Closed

Comments

@AngelAGBL
Copy link

AngelAGBL commented Sep 16, 2023

Issue Description

When I try to execute nano or vim from msys2 (yes, these programs are added to my PATH) with privileges on cmd they get stuck, this doesn't happen on powershell:

Steps to Reproduce

  1. Open cmd
  2. Execute gsudo nano or gsudo vim

Screenshots

Nano Vim
image image

This issue doesn't get solved using --direct mode, the only way to make this work is executing:
gsudo cmd /c nano
gsudo cmd /c vim
It would be useful to execute them directly with gsudo, so I'll thank you if you'll give it some solution

Context:

  • Windows version: Win11 22H2 - Spanish
  • gsudo version: v2.4.0 or below
@gerardog
Copy link
Owner

I don't know what is the root cause of the problem, but here is a workaround that will add the cmd /c automatically:

Please run:

gsudo config ExceptionList = "notepad.exe;powershell.exe;vim.exe;nano.exe;"

Thank you.

@gerardog
Copy link
Owner

gerardog commented Sep 18, 2023

Please don't close the issue. I'll close it after, at least, adding vim and nano by default in the exceptionlist.

@AngelAGBL
Copy link
Author

Ok, thanks a lot, that works

@gerardog
Copy link
Owner

How have you installed vim and nano on windows? using a windows installer? using git-bash?
Where are your vim.exe and nano.exe files located?
(on cmd, run which vim)

@AngelAGBL
Copy link
Author

They are both installed from the msys2 project (https://www.msys2.org/) and are located in the C:\msys64\usr\bin directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants