Then OpenOffice Calc opened too, but Dolphin with path "/tmp/ADS4981170715823938916.xls/" also appeared each time.
What is Dolphin? What OS are you on? What version of Java are you running from Help->[Support Information]?
ADS makes a Java API call to Open based on the OS.
Dolphin is the default filemanager in KDE.
License Key: CC0E7017582F6D65890EE767D86EAFDF8CF1DC10856EB4D5****************
Dolphin is the default filemanager in KDE.
License Key: CC0E7017582F6D65890EE767D86EAFDF8CF1DC10856EB4D5****************
You are using the "icedtea" JVM which is not adequate to run ADS. Please run ADS with datastudio-bundled.sh to use the bundled JRE which is the Sun JRE. With this you probably will not have this issue.
You are using the "icedtea" JVM which is not adequate to run ADS. Please run ADS with datastudio-bundled.sh to use the bundled JRE which is the Sun JRE. With this you probably will not have this issue.
Hm, you are right it is not reproducible on Oracle JVM, which i have too:
Hm, you are right it is not reproducible on Oracle JVM, which i have too:
ADS will try to use java.awt.Desktop.open(). If it is not supported it will try kde-open.
ADS will try to use java.awt.Desktop.open(). If it is not supported it will try kde-open.
How you determine java.awt.Desktop.open() is supported or not? Just catch exception and as fallback call execute external command? And why kde-open instead of standard DE-independent xdg-open?
How you determine java.awt.Desktop.open() is supported or not? Just catch exception and as fallback call execute external command? And why kde-open instead of standard DE-independent xdg-open?
We do this ...
try {
if(Desktop.isDesktopSupported()) {
Desktop.getDesktop().open(f);
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/xdg-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/gnome-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/kde-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
We do this ...
try {
if(Desktop.isDesktopSupported()) {
Desktop.getDesktop().open(f);
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/xdg-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/gnome-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
try {
String cmd = "/usr/bin/kde-open";
if(new File(cmd).exists()) {
Runtime.getRuntime().exec(new String[] { cmd, path });
return;
}
} catch(Exception e) {
log.err(e);
}
Thank you very much for the info.
I've report it to our openjdk maintainers: https://bugzilla.redhat.com/show_bug.cgi?id=810849
Thank you very much for the info.
I've report it to our openjdk maintainers: https://bugzilla.redhat.com/show_bug.cgi?id=810849
Issue #6651 |
Closed |
Invalid |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
What is Dolphin? What OS are you on? What version of Java are you running from Help->[Support Information]?
ADS makes a Java API call to Open based on the OS.