public static Object detectLinuxDefaultFileBrowser(Map<String,Object> fileBrowsers){
  ArrayList<String> command=new ArrayList<String>();
  command.add("xdg-mime");
  command.add("query");
  command.add("default");
  command.add("inode/directory");
  if (fileBrowsers == null) {
    fileBrowsers=new HashMap<String,Object>();
    fileBrowsers.put(".*","*");
  }
  return Utils.isExpectedCommandOutput(command,fileBrowsers);
}

public static Object detectLinuxDefaultFileBrowser ( Map < String , Object > fileBrowsers ) { ArrayList < String > command = new ArrayList < String > ( ) ; command . add ( "xdg-mime" ) ; command . add ( "query" ) ; command . add ( "default" ) ; command . add ( "inode/directory" ) ; if ( fileBrowsers == null ) { fileBrowsers = new HashMap < String , Object > ( ) ; fileBrowsers . put ( ".*" , "*" ) ; } return Utils . isExpectedCommandOutput ( command , fileBrowsers ) ; }
detects programs from $ desktop_session
