File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments