7

I recently completely transitioned to Linux but struggle to find a good way to code in C#. I discovered Monodevelop which looks similar to Visual Studio, but whenever I try to run any code I get this error ( I run pop! _os if it matters):

Debugger operation failed
ApplicationName='/usr/lib/gnome-terminal/gnome-terminal-server', CommandLine='--app-id mono.develop.id1f71c1c4cede406e9ae6cc55355f30e2', CurrentDirectory='', Native error= Cannot find the specified file

It might have something to do with the path of the terminal but I don't know how to fix it. I know it's a Linux specific thing but I didn't know better than to post it here.

double-beep
  • 3,889
  • 12
  • 24
  • 35

4 Answers4

13

Also had this same error. This happens because /usr/lib/gnome-terminal/gnome-terminal-server is actually /usr/libexec/gnome-terminal-server, and MonoDevelop is still using the old path.

The way I fixed it was to create the /usr/lib/gnome-terminal directory and adding a symbolic link with sudo ln -s /usr/libexec/gnome-terminal-server inside /usr/lib/gnome-terminal.

Kayky de Brito
  • 148
  • 1
  • 5
6

i have seen this error when i'm running my console program (c#) on monodevelop on kali : "ApplicationName='/usr/lib/gnome-terminal/gnome-terminal-server', CommandLine='--app-id mono.develop.id0771a7bfd5a6445f82d97a8fe5fc4abc', CurrentDirectory='', Native error= Cannot find the specified file"

I have solved it using this script on terminal :

  1. cd /usr/lib
  2. sudo mkdir gnome-terminal
  3. cd gnome-terminal
  4. sudo ln -s /usr/libexec/gnome-terminal-server

Make this, it will be done; and now run again your program and enjoy :)

0
  1. Open the lib folder. Click on the arrow pointing down, next to the word lib, on top, and click open on the terminal.

  2. Type sudo mkdir gnome-terminal

  3. sudo ln -s /usr/libexec/gnome-terminal-server

David Buck
  • 3,439
  • 29
  • 24
  • 31
Renan
  • 1
-3

I had that same error (which made me transition to Windows :c).

Do not use mono-develop to code c# in linux, simply install vscode and .net core for linux. Create a .net core project and open it with vscode. Trust me, it will save your life