]> git.lyx.org Git - features.git/commitdiff
Hint message when .lyx dir can not be created.
authorPavel Sanda <sanda@lyx.org>
Tue, 8 Dec 2020 08:53:38 +0000 (09:53 +0100)
committerPavel Sanda <sanda@lyx.org>
Tue, 8 Dec 2020 08:53:38 +0000 (09:53 +0100)
Useful for scripts running without standard homedir environments,
cf https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816173

src/LyX.cpp

index 44361baa0fc13a35fd19e98aedb922fecc9d9da6..a0035fbe802dbb86953f91797366f7a87a665618 100644 (file)
@@ -1103,7 +1103,7 @@ bool LyX::queryUserLyXDir(bool explicit_userdir)
 
        if (!sup.createDirectory(0755)) {
                // Failed, so let's exit.
-               lyxerr << to_utf8(_("Failed to create directory. Exiting."))
+               lyxerr << to_utf8(_("Failed to create directory. Perhaps wrong -userdir option?\nExiting."))
                       << endl;
                earlyExit(EXIT_FAILURE);
        }