diff --git a/src/main/java/de/moritzf/latexhelper/MathematicalLatexHelperGui.java b/src/main/java/de/moritzf/latexhelper/MathematicalLatexHelperGui.java index b5570fb..90e177e 100755 --- a/src/main/java/de/moritzf/latexhelper/MathematicalLatexHelperGui.java +++ b/src/main/java/de/moritzf/latexhelper/MathematicalLatexHelperGui.java @@ -29,6 +29,7 @@ import de.moritzf.latexhelper.util.GuiUtil; import de.moritzf.latexhelper.util.OsUtil; +import io.github.soc.directories.UserDirectories; import mathpix.MathPixSettings; import org.scilab.forge.jlatexmath.TeXConstants; import org.scilab.forge.jlatexmath.TeXFormula; @@ -256,7 +257,7 @@ public void actionPerformed(ActionEvent arg0) { JOptionPane.showMessageDialog(this, "Make sure you entered a valid LaTeX-expression.
" + " Furthermore ensure that you have writing access to" - + " the directory: " + Export.USER_HOME + "", + + " the directory: " + UserDirectories.get().desktopDir + "", "Could not save", JOptionPane.ERROR_MESSAGE); } }