public void Command_Open_Readme() {
Exception lastEx = null;
Process proc = null;
try {
proc = Process.Start(_pathReadme);
if (proc == null) {
proc = Process.Start("gedit", $"\"{_pathReadme}\"");
}
if (proc == null) {
proc = Process.Start("kate", $"\"{_pathReadme}\"");
}
}
catch (Exception ex) {
lastEx = ex;
}
if (proc == null) {
string msg = null;
if (lastEx == null) {
msg = "You probably don't have a default program for opening txt files.";
}
Command_Display_Error("Open readme",_pathReadme,lastEx,msg);
}
}