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
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
Due to a lack of time, the "open with" has not been tested or fully implemented on platforms other than mac.