B
Bruce Arnold
Guest
The following code catches on Wine with "Unrecognized file type or..."
try
{
System.Diagnostics.Process.Start(mConsole.SelectedText.Trim());
}
catch (System.ComponentModel.Win32Exception)
{
MessageBox.Show("Unrecognized file type and/or incomplete filename." +
"\r\n\r\nFile: " + mConsole.SelectedText, "UNKNOWN");
}
catch (System.InvalidOperationException)
{
; // ignore hitting a blank line, etc.
}
The following commands work fine from Linux command line...
xdg-open notes.txt or xdg-open stuff.jpg
Putting "xdg-open" in the Process.Start argument doesn't help.
Thanks, Bruce
Continue reading...
try
{
System.Diagnostics.Process.Start(mConsole.SelectedText.Trim());
}
catch (System.ComponentModel.Win32Exception)
{
MessageBox.Show("Unrecognized file type and/or incomplete filename." +
"\r\n\r\nFile: " + mConsole.SelectedText, "UNKNOWN");
}
catch (System.InvalidOperationException)
{
; // ignore hitting a blank line, etc.
}
The following commands work fine from Linux command line...
xdg-open notes.txt or xdg-open stuff.jpg
Putting "xdg-open" in the Process.Start argument doesn't help.
Thanks, Bruce
Continue reading...