gvSIG bugs #4755

Catalog: "Open in filesystem explorer" freezes gvSIG

Added by Antonio Falciano over 6 years ago. Updated over 6 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Joaquín del Cerro Murciano
Category:Scripting
Target version:2.4.0-2846 (rev. org.gvsig.desktop-2.0.215)
Severity:Major Add-on version:
gvSIG version:2.4.0 Add-on build:
gvSIG build:2843 Add-on resolve version:
Operative System:Windows Add-on resolve build:
Keywords: Proyecto:
Has patch: Hito:
Add-on name:Unknown

Description

The "Open in filesystem explorer" menu option (Catalog v. 1.0.0-11) freezes gvSIG in Windows. Killing the application, then the gvsig.log reports:

INFO 96941 AWT-EventQueue-0 org.gvsig.desktopopen.DefaultDesktopOpen - Trying to use Desktop.getDesktop().browse() with file:/C:/Users/Antonio/

It seems that there was a bug about Desktop.GetDesktop().browse() in the past: https://stackoverflow.com/questions/27879854/desktop-getdesktop-browse-hangs

Desktop.getDesktop().open() works fine instead. For instance:

from java.awt import Desktop
from java.io import File
from java.lang import IllegalArgumentException

def main(*args):

    desktop = Desktop.getDesktop()
    dirToOpen = r"C:\Users\Antonio\" 
    try:
        desktop.open(File(dirToOpen))
    except IllegalArgumentException:
        print "The directory doesn't exist." 

Associated revisions

Revision 1671
Added by Joaquín del Cerro Murciano over 6 years ago

refs #4755, modificados los mensajes de error

History

#1 Updated by Joaquín del Cerro Murciano over 6 years ago

  • Target version changed from 2.4.0-2850-final (rev. org.gvsig.desktop-2.0.220) to 2.5.1-3044

#2 Updated by Joaquín del Cerro Murciano over 6 years ago

  • Target version changed from 2.5.1-3044 to 2.4.0-2846 (rev. org.gvsig.desktop-2.0.215)
  • Assignee set to Joaquín del Cerro Murciano
  • Status changed from New to Fixed

I changed the desktop.brwoser to desktop.open, but I'm not sure it's the right thing to do.
In Linux it gives an error, and then it tries again by launching the xdg-open and that works.
I modified the error messages, which were very scandalous, and I leave it that way.

https://github.com/gvSIGAssociation/gvsig-desktop-scripting-Catalog/commit/f52acf479b0c51d361c944a9d08eef404be5690e

#3 Updated by Antonio Falciano over 6 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF