mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
Actually move the OS2-specific block to make the code more readable too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9483 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
555bd9e4d8
commit
3e0abd0ad4
@ -581,19 +581,16 @@ string const createLyXTmpDir(string const & deflt)
|
|||||||
{
|
{
|
||||||
if (!deflt.empty() && deflt != "/tmp") {
|
if (!deflt.empty() && deflt != "/tmp") {
|
||||||
if (mkdir(deflt, 0777)) {
|
if (mkdir(deflt, 0777)) {
|
||||||
|
#ifdef __EMX__
|
||||||
|
Path p(user_lyxdir());
|
||||||
|
#endif
|
||||||
if (IsDirWriteable(deflt)) {
|
if (IsDirWriteable(deflt)) {
|
||||||
// deflt could not be created because it
|
// deflt could not be created because it
|
||||||
// did exist already, so let's create our own
|
// did exist already, so let's create our own
|
||||||
// dir inside deflt.
|
// dir inside deflt.
|
||||||
#ifdef __EMX__
|
|
||||||
Path p(user_lyxdir());
|
|
||||||
#endif
|
|
||||||
return createTmpDir(deflt, "lyx_tmpdir");
|
return createTmpDir(deflt, "lyx_tmpdir");
|
||||||
} else {
|
} else {
|
||||||
// some other error occured.
|
// some other error occured.
|
||||||
#ifdef __EMX__
|
|
||||||
Path p(user_lyxdir());
|
|
||||||
#endif
|
|
||||||
return createTmpDir("/tmp", "lyx_tmpdir");
|
return createTmpDir("/tmp", "lyx_tmpdir");
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user