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
bb49f968
Kaydet (Commit)
bb49f968
authored
Ara 03, 2012
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
kill the separate thread, it shouldnt be needed anymore with the dialog
üst
291614e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
28 deletions
+19
-28
appserv.cxx
sfx2/source/appl/appserv.cxx
+19
-28
No files found.
sfx2/source/appl/appserv.cxx
Dosyayı görüntüle @
bb49f968
...
...
@@ -135,31 +135,6 @@ using namespace ::com::sun::star::document;
namespace
{
struct
BaseInstallerPhoenix
:
osl
::
Thread
{
BaseInstallerPhoenix
()
{};
virtual
void
run
()
{
try
{
using
namespace
org
::
freedesktop
::
PackageKit
;
using
namespace
svtools
;
Reference
<
XSyncDbusSessionHelper
>
xSyncDbusSessionHelper
(
SyncDbusSessionHelper
::
create
(
comphelper
::
getProcessComponentContext
()));
Sequence
<
::
rtl
::
OUString
>
vPackages
(
1
);
vPackages
[
0
]
=
"libreoffice-base"
;
::
rtl
::
OUString
sInteraction
;
xSyncDbusSessionHelper
->
InstallPackageNames
(
0
,
vPackages
,
sInteraction
);
// Ill be back (hopefully)!
executeRestartDialog
(
comphelper
::
getProcessComponentContext
(),
NULL
,
RESTART_REASON_BIBLIOGRAPHY_INSTALL
);
}
catch
(
Exception
&
e
)
{
SAL_INFO
(
"sfx2.appl"
,
"trying to install LibreOffice Base, caught "
<<
e
.
Message
);
}
}
};
// lp#527938, debian#602953, fdo#33266, i#105408
static
bool
lcl_isBaseAvailable
()
{
...
...
@@ -181,10 +156,26 @@ namespace
{
// lp#527938, debian#602953, fdo#33266, i#105408
// make sure we actually can instanciate services from base first
//
if(!lcl_isBaseAvailable())
if
(
!
lcl_isBaseAvailable
())
{
BaseInstallerPhoenix
*
pBaseInstallerPhoenix
=
new
BaseInstallerPhoenix
();
pBaseInstallerPhoenix
->
create
();
try
{
using
namespace
org
::
freedesktop
::
PackageKit
;
using
namespace
svtools
;
Reference
<
XSyncDbusSessionHelper
>
xSyncDbusSessionHelper
(
SyncDbusSessionHelper
::
create
(
comphelper
::
getProcessComponentContext
()));
Sequence
<
::
rtl
::
OUString
>
vPackages
(
1
);
vPackages
[
0
]
=
"libreoffice-base"
;
::
rtl
::
OUString
sInteraction
;
xSyncDbusSessionHelper
->
InstallPackageNames
(
0
,
vPackages
,
sInteraction
);
// Ill be back (hopefully)!
executeRestartDialog
(
comphelper
::
getProcessComponentContext
(),
NULL
,
RESTART_REASON_BIBLIOGRAPHY_INSTALL
);
}
catch
(
Exception
&
e
)
{
SAL_INFO
(
"sfx2.appl"
,
"trying to install LibreOffice Base, caught "
<<
e
.
Message
);
}
return
;
}
SfxStringItem
aURL
(
SID_FILE_NAME
,
rtl
::
OUString
(
".component:Bibliography/View1"
));
...
...
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