Seria interessante abrir um bug no gnome, solicitando a inclusão dessa feature. Poderia ser uma chave do gconf. automount On ou off.
Abraços, Kemel Zaidan aka Legendario Coordenador Ubuntu-BR-SP jabber: legendario ARROBA jabber.org twitter: @kemelzaidan Eu prefiro receber documentos em ODF. Não sabe o que é? -> http://miud.in/V1 2010/11/17 Frederico Martins <[email protected]> > segue abaixo a solução .. > > > # Lista o que está no /media > # ** Poderia ter usado menos linha :) > > public static Vector<String> buscarUnidades() { > Vector<String> vctUnidades = new Vector<String>(); > File f = new File("/media"); > File[] files = f.listFiles (new FileFilter() { > public boolean accept(File pathname) { > return pathname.getName().toLowerCase().endsWith(""); > } > }); > for (int i = 0; i < files.length; ++i) { > System.out.println (files[i]); > vctUnidades.add(files[i].getPath()); > } > return vctUnidades; > } > > > > # verificar mudanças no diretório > > > private boolean verificarMudancaUnidades() { > String unidade = null; > boolean achou = false; > Vector<String> vctUnidadesAlt = > TransferenciaPenDrive.buscarUnidades(); > for(int i=0; i < vctUnidadesAlt.size(); i++) { > unidade = vctUnidadesAlt.get(i); > achou = false; > for(int j = 0; j < _vctUnidades.size(); j++) { > if(_vctUnidades.get(j).equals(unidade)) { > achou = true; > break; > } > } > if(!achou) break; > } > if(!achou) { > _unidade = unidade; > return true; > } > return false; > } > > > > att > > > _______________________________________________ > Mailing list: > https://launchpad.net/~ubuntu-br-sp<https://launchpad.net/%7Eubuntu-br-sp> > Post to : [email protected] > Unsubscribe : > https://launchpad.net/~ubuntu-br-sp<https://launchpad.net/%7Eubuntu-br-sp> > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~ubuntu-br-sp Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-br-sp More help : https://help.launchpad.net/ListHelp

