Skip to content

Commit

Permalink
fixed #2613
Browse files Browse the repository at this point in the history
  • Loading branch information
chochreiner committed Mar 6, 2017
1 parent eb34606 commit 0400ae9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- We fixed an issue where executing `Move file` on a selected file in the `general`-tab could overwrite an existing file. [#2385](https://github.com/JabRef/jabref/issues/2358)
- We fixed an issue with importing groups and subgroups [#2600](https://github.com/JabRef/jabref/issues/2600)
- Fixed an issue where title-related key patterns did not correspond to the documentation [#2604](https://github.com/JabRef/jabref/issues/2604) [#2589](https://github.com/JabRef/jabref/issues/2589)
- We fixed an issue which prohibited the citation export to external programms on MacOS [#2613](https://github.com/JabRef/jabref/issues/2613)

### Removed


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.jabref.gui.BasePanel;
import org.jabref.gui.FileDialog;
import org.jabref.logic.l10n.Localization;
import org.jabref.logic.util.OS;
import org.jabref.model.database.BibDatabase;
import org.jabref.model.entry.BibEntry;
import org.jabref.model.metadata.MetaData;
Expand Down Expand Up @@ -66,7 +67,12 @@ public void pushEntries(BibDatabase database, List<BibEntry> entries, String key

// Execute command
try {
Runtime.getRuntime().exec(getCommandLine(keyString));
if (OS.OS_X) {
String[] commands = getCommandLine(keyString);
Runtime.getRuntime().exec("open -a " + commands[0] + " -n --args " + commands[1] + " " + commands[2]);
} else {
Runtime.getRuntime().exec(getCommandLine(keyString));
}
}

// In case it did not work
Expand Down

0 comments on commit 0400ae9

Please sign in to comment.