From 4d623881ad70dd755c6cff808bf45b94a0544697 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Fri, 8 Oct 2021 22:23:16 +0200 Subject: [PATCH 1/3] Open folder on mac and highlight file --- src/main/java/org/jabref/gui/desktop/os/OSX.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/desktop/os/OSX.java b/src/main/java/org/jabref/gui/desktop/os/OSX.java index b48c8bef411..9d5f9b91baa 100644 --- a/src/main/java/org/jabref/gui/desktop/os/OSX.java +++ b/src/main/java/org/jabref/gui/desktop/os/OSX.java @@ -1,6 +1,5 @@ package org.jabref.gui.desktop.os; -import java.awt.Desktop; import java.io.File; import java.io.IOException; import java.nio.file.Path; @@ -34,7 +33,8 @@ public void openFileWithApplication(String filePath, String application) throws @Override public void openFolderAndSelectFile(Path file) throws IOException { - Desktop.getDesktop().open(file.getParent().toFile()); + String[] cmd = {"/usr/bin/open", "-R", file.toString()}; + Runtime.getRuntime().exec(cmd); } @Override From 3b84b44e41bee93aec6dac7e6f58c5793495b095 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Fri, 8 Oct 2021 22:29:38 +0200 Subject: [PATCH 2/3] Add changelot --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d432a948b41..ad6becf213d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where exported entries from a Citavi bib containing URLs could not be imported [#7892](https://github.com/JabRef/jabref/issues/7882) - We fixed an issue where the icons in the search bar had the same color, toggled as well as untoggled. [#8014](https://github.com/JabRef/jabref/pull/8014) - We fixed an issue where typing an invalid UNC path into the "Main file directory" text field caused an error. [#8107](https://github.com/JabRef/jabref/issues/8107) - +- We fixed an issue where "Open Folder" didn't select the file on macOS in Finder [#8130](https://github.com/JabRef/jabref/issues/8130) ### Removed From bff61103705929276deff2e73e8c305ca160d660 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Fri, 8 Oct 2021 22:34:08 +0200 Subject: [PATCH 3/3] lint --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad6becf213d..a6731df1893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where the icons in the search bar had the same color, toggled as well as untoggled. [#8014](https://github.com/JabRef/jabref/pull/8014) - We fixed an issue where typing an invalid UNC path into the "Main file directory" text field caused an error. [#8107](https://github.com/JabRef/jabref/issues/8107) - We fixed an issue where "Open Folder" didn't select the file on macOS in Finder [#8130](https://github.com/JabRef/jabref/issues/8130) + ### Removed