Catch UnsupportedOperationExceptions from getDesktop.
This commit is contained in:
parent
e9be0ad9ef
commit
0f5e784e64
@ -164,7 +164,7 @@ public class EditDecalHelper {
|
|||||||
if (useSystemEditor) {
|
if (useSystemEditor) {
|
||||||
try {
|
try {
|
||||||
Desktop.getDesktop().edit(tmpFile);
|
Desktop.getDesktop().edit(tmpFile);
|
||||||
} catch (IOException ioex) {
|
} catch (Exception ioex) {
|
||||||
throw new EditDecalHelperException(trans.get("EditDecalHelper.launchSystemEditorException"), trans.get("EditDecalHelper.editPreferencesHelp"), ioex);
|
throw new EditDecalHelperException(trans.get("EditDecalHelper.launchSystemEditorException"), trans.get("EditDecalHelper.editPreferencesHelp"), ioex);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user