Skip to content

Commit ad8cae6

Browse files
committed
minor cleanup in launch()
1 parent f32bdbc commit ad8cae6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,18 +3430,18 @@ static public Process launch(String... args) {
34303430
} else if (platform == LINUX) {
34313431
// xdg-open is in the Free Desktop Specification and really should just
34323432
// work on desktop Linux. Not risking it though.
3433-
final String[] launchers = {"xdg-open", "gnome-open", "kde-open"};
3434-
for (String l : launchers) {
3433+
final String[] launchers = { "xdg-open", "gnome-open", "kde-open" };
3434+
for (String launcher : launchers) {
34353435
if (openLauncher != null) break;
34363436
try {
3437-
Process p = Runtime.getRuntime().exec(new String[] { l });
3437+
Process p = Runtime.getRuntime().exec(new String[] { launcher });
34383438
/*int result =*/ p.waitFor();
34393439
// Not installed will throw an IOException (JDK 1.4.2, Ubuntu 7.04)
3440-
openLauncher = l;
3440+
openLauncher = launcher;
34413441
} catch (Exception e) { }
34423442
}
34433443
if (openLauncher == null) {
3444-
System.err.println("Could not find xdg-, gnome-, or kde-open: " +
3444+
System.err.println("Could not find xdg-open, gnome-open, or kde-open: " +
34453445
"the open() command may not work.");
34463446
}
34473447
if (openLauncher != null) {

0 commit comments

Comments
 (0)