Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
85c2755e
Kaydet (Commit)
85c2755e
authored
Eyl 04, 2002
tarafından
Mikhail Voitenko
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#102733# do not create soffice.tmp
üst
99518441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
23 deletions
+13
-23
appinit.cxx
desktop/source/app/appinit.cxx
+13
-23
No files found.
desktop/source/app/appinit.cxx
Dosyayı görüntüle @
85c2755e
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: appinit.cxx,v $
* $RCSfile: appinit.cxx,v $
*
*
* $Revision: 1.
9
$
* $Revision: 1.
10
$
*
*
* last change: $Author: m
ba $ $Date: 2002-07-09 09:18:18
$
* last change: $Author: m
av $ $Date: 2002-09-04 14:05:50
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -144,7 +144,6 @@ extern desktop::CommandLineArgs* GetCommandLineArgs();
...
@@ -144,7 +144,6 @@ extern desktop::CommandLineArgs* GetCommandLineArgs();
extern
desktop
::
OOfficeAcceptorThread
*
pOfficeAcceptThread
;
extern
desktop
::
OOfficeAcceptorThread
*
pOfficeAcceptThread
;
static
String
aCurrentTempURL
;
static
String
aCurrentTempURL
;
static
String
aCurrentTempBase
;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -297,10 +296,9 @@ void createTemporaryDirectory()
...
@@ -297,10 +296,9 @@ void createTemporaryDirectory()
// set temp base directory
// set temp base directory
::
rtl
::
OUString
aTempBaseURL
(
aOpt
.
GetTempPath
()
);
::
rtl
::
OUString
aTempBaseURL
(
aOpt
.
GetTempPath
()
);
sal_Int32
nIndex
=
aTempBaseURL
.
lastIndexOf
(
'/'
);
sal_Int32
nLength
=
aTempBaseURL
.
getLength
();
if
(
nIndex
!=
aTempBaseURL
.
getLength
()
-
1
)
if
(
aTempBaseURL
.
matchAsciiL
(
"/"
,
1
,
nLength
-
1
)
)
aTempBaseURL
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/"
));
aTempBaseURL
=
aTempBaseURL
.
copy
(
0
,
nLength
-
1
);
aTempBaseURL
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
DESKTOP_TEMPDIRNAME
));
String
aOldTempURL
=
aInternalOpt
.
GetCurrentTempURL
();
String
aOldTempURL
=
aInternalOpt
.
GetCurrentTempURL
();
if
(
aOldTempURL
.
Len
()
>
0
)
if
(
aOldTempURL
.
Len
()
>
0
)
...
@@ -309,14 +307,11 @@ void createTemporaryDirectory()
...
@@ -309,14 +307,11 @@ void createTemporaryDirectory()
::
utl
::
UCBContentHelper
::
Kill
(
aOldTempURL
);
::
utl
::
UCBContentHelper
::
Kill
(
aOldTempURL
);
}
}
// set new temporary base directory
aCurrentTempBase
=
aTempBaseURL
;
String
aRet
;
String
aRet
;
::
rtl
::
OUString
aTempPath
(
aTempBaseURL
);
::
rtl
::
OUString
aTempPath
(
aTempBaseURL
);
// create new current temporary directory
// create new current temporary directory
::
utl
::
LocalFileHelper
::
ConvertURLToPhysicalName
(
a
CurrentTempBase
,
aRet
);
::
utl
::
LocalFileHelper
::
ConvertURLToPhysicalName
(
a
TempBaseURL
,
aRet
);
::
osl
::
FileBase
::
getFileURLFromSystemPath
(
aRet
,
aTempPath
);
::
osl
::
FileBase
::
getFileURLFromSystemPath
(
aRet
,
aTempPath
);
aTempPath
=
::
utl
::
TempFile
::
SetTempNameBaseDirectory
(
aTempPath
);
aTempPath
=
::
utl
::
TempFile
::
SetTempNameBaseDirectory
(
aTempPath
);
if
(
!
aTempPath
.
getLength
()
)
if
(
!
aTempPath
.
getLength
()
)
...
@@ -329,12 +324,11 @@ void createTemporaryDirectory()
...
@@ -329,12 +324,11 @@ void createTemporaryDirectory()
aTempBaseURL
=
::
rtl
::
OUString
::
createFromAscii
(
"$(userurl)/temp"
);
aTempBaseURL
=
::
rtl
::
OUString
::
createFromAscii
(
"$(userurl)/temp"
);
aTempBaseURL
=
aOpt
.
SubstituteVariable
(
aTempBaseURL
);
aTempBaseURL
=
aOpt
.
SubstituteVariable
(
aTempBaseURL
);
#endif
#endif
sal_Int32
nIndex
=
aTempBaseURL
.
lastIndexOf
(
'/'
);
sal_Int32
nLength
=
aTempBaseURL
.
getLength
();
if
(
nIndex
!=
aTempBaseURL
.
getLength
()
-
1
)
if
(
aTempBaseURL
.
matchAsciiL
(
"/"
,
1
,
nLength
-
1
)
)
aTempBaseURL
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/"
));
aTempBaseURL
=
aTempBaseURL
.
copy
(
0
,
nLength
-
1
);
aTempBaseURL
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
DESKTOP_TEMPDIRNAME
));
aTempPath
=
aCurrentTempBase
=
aTempBaseURL
;
aTempPath
=
aTempBaseURL
;
::
utl
::
LocalFileHelper
::
ConvertURLToPhysicalName
(
aCurrentTempBase
,
aRet
);
::
osl
::
FileBase
::
getFileURLFromSystemPath
(
aRet
,
aTempPath
);
::
osl
::
FileBase
::
getFileURLFromSystemPath
(
aRet
,
aTempPath
);
aTempPath
=
::
utl
::
TempFile
::
SetTempNameBaseDirectory
(
aTempPath
);
aTempPath
=
::
utl
::
TempFile
::
SetTempNameBaseDirectory
(
aTempPath
);
}
}
...
@@ -349,14 +343,10 @@ void removeTemporaryDirectory()
...
@@ -349,14 +343,10 @@ void removeTemporaryDirectory()
{
{
RTL_LOGFILE_CONTEXT
(
aLog
,
"desktop (cd100003) ::removeTemporaryDirectory"
);
RTL_LOGFILE_CONTEXT
(
aLog
,
"desktop (cd100003) ::removeTemporaryDirectory"
);
// remove current
base and current
temporary directory
// remove current temporary directory
if
(
aCurrentTempURL
.
Len
()
>
0
&&
aCurrentTempBase
.
Len
()
>
0
)
if
(
aCurrentTempURL
.
Len
()
>
0
)
{
{
if
(
::
utl
::
UCBContentHelper
::
Kill
(
aCurrentTempURL
)
)
if
(
::
utl
::
UCBContentHelper
::
Kill
(
aCurrentTempURL
)
)
{
SvtInternalOptions
().
SetCurrentTempURL
(
String
()
);
SvtInternalOptions
().
SetCurrentTempURL
(
String
()
);
::
osl
::
Directory
::
remove
(
aCurrentTempBase
);
//::utl::UCBContentHelper::Kill( aCurrentTempBase );
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment