Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call TexStudio from JabRef #2613

Closed
L0rdKelvin opened this issue Mar 4, 2017 · 6 comments · Fixed by #2623
Closed

Cannot call TexStudio from JabRef #2613

L0rdKelvin opened this issue Mar 4, 2017 · 6 comments · Fixed by #2623

Comments

@L0rdKelvin
Copy link

L0rdKelvin commented Mar 4, 2017

JabRef version 3.8.2on

I've set the right path /Applications/texstudio.app in the preference, but when I click on the icon in menu bar I receive the message: Could not call executable '/Applications/texstudio.app'

Thanks for the support.

@koppor koppor changed the title OS X - I can call TexStudio form JabRef Cannot call TexStudio frrm JabRef Mar 5, 2017
@chochreiner
Copy link
Collaborator

chochreiner commented Mar 6, 2017

I can reproduce the error, though I cannot fix it atm, because i do no manage to import Jabref to Intellij...

Long story short: this is a permission issue because Texstudio is not signed; but you can open applications with the open statement.

A solution approach would be to introduce a MacOS specific statement which executes the program with open -a + application binary on the commandline:

    if (OS.OS_X) {
        Runtime.getRuntime().exec("open -a /Applications/texstudio.app");
    }

@simonharrer simonharrer changed the title Cannot call TexStudio frrm JabRef Cannot call TexStudio from JabRef Mar 6, 2017
@stefan-kolb
Copy link
Member

@chochreiner Did you just import the gradle file in Intellij? Should work out of the box. Do not try to create an Intellij project at first. Also feel free to contact me on Skype!

@stefan-kolb
Copy link
Member

@chochreiner Take a look at OSX.java there are methods that use open -a

@chochreiner
Copy link
Collaborator

@stefan-kolb the problem was an outdated java version

I've had a closer look at the problem and found out that the official recommended command open -a /Applications/texstudio.app/Contents/MacOS/texstudio --args --insert-cite xx to open programs on the commandline does not work for some reason for texstudio - though it works for other applications; therefore the open approach does not really help to solve the problem

On MacOS, all programms, e.g. textstudio.app are in fact special folders, which wrap some things among the actual executable, which is fine to trigger the citation insert

e.g. fot texstudio: the path /Applications/texstudio.app/Contents/MacOS/texstudio works at least for me @L0rdKelvin

the most suitable shortime soluation would be to add the full path to the executables to the FAQ

@L0rdKelvin
Copy link
Author

L0rdKelvin commented Mar 6, 2017 via email

chochreiner added a commit that referenced this issue Mar 6, 2017
@chochreiner chochreiner mentioned this issue Mar 6, 2017
chochreiner added a commit that referenced this issue Mar 6, 2017
@chochreiner
Copy link
Collaborator

I've just found the solution to rely on the normal application paths.
The dev build on: http://builds.jabref.org/fix2613/ already fixes the problem.

lenhard pushed a commit that referenced this issue Mar 7, 2017
Siedlerchr added a commit that referenced this issue Mar 7, 2017
* upstream/master: (91 commits)
  fixed #2613 (#2623)
  Add MathSciNet as ID-based fetcher (#2621)
  Add icon + color and description to groups (#2612)
  Fixed wrong logger import (#2618)
  Cleanup window has a scrollbar now. (#2614)
  Added the locale to a newly created class
  Move ExportComparator and CustomExportList to the correct package (only used in preferences)
  Fixes displaying of Mr DLib recommendations (#2616)
  Fix title-related key patterns in BibtexKeyPatternUtil (#2610)
  Remove OrdinalsToSuperscriptFormatter from recommended biblatex save actions (#2601)
  Update pgjdbc to new major version
  Update Dependenices String Similary log4j wiremock mockito
  Fix exception when parsing groups which contain a top level group (#2611)
  Add "Remove group and subgroups" option (#2587)
  Fix #1104: group selection is preserved under tab change
  Fix several File Cleanup + Rename issues  (#2415)
  Fixed a small error in the code comments
  Implement #1904: filter groups (#2588)
  Braces checking followup (#2598)
  Improve braces checking (#2593)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants