]> git.lyx.org Git - lyx.git/commit
Don't use a global variable for avoiding removal of the system temp dir
authorEnrico Forestieri <forenr@lyx.org>
Sun, 17 Dec 2006 21:52:40 +0000 (21:52 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 17 Dec 2006 21:52:40 +0000 (21:52 +0000)
commit6b5289825e18f158eb180aa048a11bc95bdf1812
treeaf3d6283e99d9e86f3e87a9db9931b5af536722e
parente3241cca0a9771401f5bfbde2a5f9d3f6b2e1957
Don't use a global variable for avoiding removal of the system temp dir

* src/support/package.h
(Package::system_temp_dir): new, return the system temp dir.

* src/support/package.C.in
(Package::Package): record the system temp dir.

* src/lyx_main.C
(LyX::prepareExit): don't remove the temporary directory if it
is the same as the system temp dir, meaning that the lyx_tmpdir
has not yet been created.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16318 a592a061-630c-0410-9148-cb99ea01b6c8
src/lyx_main.C
src/support/package.C.in
src/support/package.h