Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #6318 (closed)

Opened 13 years ago

Closed 12 years ago

RFE: Insight open-with

Reported by: wmoore Owned by: jburel
Priority: minor Milestone: OMERO-4.4
Component: Insight Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Suggestion for how to improve the open-with functionality on Linux:

From http://www.openmicroscopy.org/community/viewtopic.php?f=5&t=758

org.openmicroscopy.shoola.env.data.model.ApplicationData? class:

       public List<String> getArguments()
       {
          List<String> list = new ArrayList<String>();
          if (UIUtilities.isMacOS()) {
             if (executable != null && executable.length() > 0)
                list.add(executable);
             else list.add("open");
             if (commands != null && commands.size() > 0)
                list.addAll(commands);
          } else if (UIUtilities.isWindowsOS()) {
             
          } else if (UIUtilities.isLinuxOS()) {
             if (executable != null && executable.length() > 0)
                list.add(executable);
             else list.add("xdg-open");
             if (commands != null && commands.size() > 0)
                list.addAll(commands);
          }
          return list;
       }

This now works for me. However I am not sure if xdg-utils is installed on every Linux OS.

Change History (3)

comment:1 Changed 13 years ago by jburel

Due to a lack of time, the "open with" has not been tested or fully implemented on platforms other than mac.

comment:2 Changed 13 years ago by jburel

  • Milestone changed from OMERO-Beta4.3.2 to OME-5.0

comment:3 Changed 12 years ago by jburel

  • Resolution set to fixed
  • Status changed from new to closed

Closing, it now works on all 3 platforms

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68724 sec.)

We're Hiring!