double clicking .gephi file in osx does not open gephi

Bug #628900 reported by Erik Borra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Won't Fix
Low
Mathieu Bastian
0.7
Won't Fix
Low
Unassigned

Bug Description

when clicking a .gephi file (after assigning .gephi files to open with gephi), gephi does not open the file but shows the new project dialog.

Product Version: Gephi 0.7 alpha4 200912041610
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279
System: Mac OS X version 10.6.4 running on x86_64; MacRoman; en_US (gephidesktop)

summary: - opening .gephi file in osx does not work
+ double clicking .gephi file in osx does open gephi
Revision history for this message
Mathieu Bastian (mathieu.bastian) wrote : Re: double clicking .gephi file in osx does open gephi

Thanks, and does it show an error message ?

Could you please try to run the application from the console with a file name as a param?

Revision history for this message
Erik Borra (erik-erikborra) wrote : Re: [Bug 628900] Re: double clicking .gephi file in osx does open gephi

  There is no error message when double clicking the .gephi file and
choosing gephi to open it with. Gephi just shows the startup screen and
does not load a workspace.

when opening from console (open -a /Applications/gephi-0.7-alpha4.app
climate_change_2.gephi) the startup screen is not shown and no workspace
is loaded. There are no error messages either.

When I do open project and select the file climate_change_2.gephi the
project is loaded successfully (except for some workspace settings as
specified in another bug report).

summary: - double clicking .gephi file in osx does open gephi
+ double clicking .gephi file in osx does not open gephi
Revision history for this message
Mathieu Bastian (mathieu.bastian) wrote :

Ok, I looked at the problem. Obviously Mac Os X doesn't use the same system for double clicking files as Windows and Linux, which gives the absolute path of the file as a parameter of the application. By double clicking a file and opening it with Gephi, I don't receive any parameter...the method is different.

If someone has some idea how to get the file path?

Changed in gephi:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Mathieu Bastian (mathieu.bastian)
Revision history for this message
Mathieu Bastian (mathieu.bastian) wrote :

I looked in detail how this should be done. Normally a "ApplicationListener" is registered int he application to receive "open file" events.

Unfortunately, because Gephi is launched with the Netbeans launcher script, and not the JavaApplicationStub these events don't make it until the application, and there is no workaround.

Netbeans IDE has the same issue: http://netbeans.org/bugzilla/show_bug.cgi?id=138943

Changed in gephi:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.