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
62ebb119
Kaydet (Commit)
62ebb119
authored
Kas 08, 2011
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't demonize if we are passed an --accept line for UNO remote control
üst
d3d8998a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
17 deletions
+26
-17
args.c
desktop/unx/source/args.c
+19
-14
args.h
desktop/unx/source/args.h
+1
-0
start.c
desktop/unx/source/start.c
+6
-3
No files found.
desktop/unx/source/args.c
Dosyayı görüntüle @
62ebb119
...
...
@@ -48,29 +48,33 @@ static struct {
unsigned
int
bInhibitSplash
:
1
;
unsigned
int
bInhibitPagein
:
1
;
unsigned
int
bInhibitJavaLdx
:
1
;
unsigned
int
bInhibitDemon
:
1
;
const
char
*
pPageinType
;
}
pArgDescr
[]
=
{
/* have a trailing argument */
{
"pt"
,
1
,
0
,
0
,
0
,
NULL
},
{
"display"
,
1
,
0
,
0
,
0
,
NULL
},
{
"pt"
,
1
,
0
,
0
,
0
,
0
,
NULL
},
{
"display"
,
1
,
0
,
0
,
0
,
0
,
NULL
},
/* no splash */
{
"nologo"
,
0
,
1
,
0
,
0
,
NULL
},
{
"headless"
,
0
,
1
,
0
,
0
,
NULL
},
{
"invisible"
,
0
,
1
,
0
,
0
,
NULL
},
{
"minimized"
,
0
,
1
,
0
,
0
,
NULL
},
{
"nologo"
,
0
,
1
,
0
,
0
,
0
,
NULL
},
{
"headless"
,
0
,
1
,
0
,
0
,
0
,
NULL
},
{
"invisible"
,
0
,
1
,
0
,
0
,
0
,
NULL
},
{
"minimized"
,
0
,
1
,
0
,
0
,
0
,
NULL
},
/* pagein bits */
{
"writer"
,
0
,
0
,
0
,
0
,
"pagein-writer"
},
{
"calc"
,
0
,
0
,
0
,
0
,
"pagein-calc"
},
{
"draw"
,
0
,
0
,
0
,
0
,
"pagein-draw"
},
{
"impress"
,
0
,
0
,
0
,
0
,
"pagein-impress"
},
{
"writer"
,
0
,
0
,
0
,
0
,
0
,
"pagein-writer"
},
{
"calc"
,
0
,
0
,
0
,
0
,
0
,
"pagein-calc"
},
{
"draw"
,
0
,
0
,
0
,
0
,
0
,
"pagein-draw"
},
{
"impress"
,
0
,
0
,
0
,
0
,
0
,
"pagein-impress"
},
/* nothing much */
{
"version"
,
0
,
1
,
1
,
1
,
NULL
},
{
"help"
,
0
,
1
,
1
,
1
,
NULL
},
{
"h"
,
0
,
1
,
1
,
1
,
NULL
},
{
"?"
,
0
,
1
,
1
,
1
,
NULL
},
{
"version"
,
0
,
1
,
1
,
1
,
0
,
NULL
},
{
"help"
,
0
,
1
,
1
,
1
,
0
,
NULL
},
{
"h"
,
0
,
1
,
1
,
1
,
0
,
NULL
},
{
"?"
,
0
,
1
,
1
,
1
,
0
,
NULL
},
/* UNO remote controlled process */
{
"accept"
,
0
,
0
,
0
,
0
,
1
,
NULL
},
};
Args
*
args_parse
(
void
)
...
...
@@ -131,6 +135,7 @@ Args *args_parse (void)
args
->
bInhibitSplash
|=
pArgDescr
[
j
].
bInhibitSplash
;
args
->
bInhibitPagein
|=
pArgDescr
[
j
].
bInhibitPagein
;
args
->
bInhibitJavaLdx
|=
pArgDescr
[
j
].
bInhibitJavaLdx
;
args
->
bInhibitDemon
|=
pArgDescr
[
j
].
bInhibitDemon
;
if
(
pArgDescr
[
j
].
pPageinType
)
args
->
pPageinType
=
pArgDescr
[
j
].
pPageinType
;
}
...
...
desktop/unx/source/args.h
Dosyayı görüntüle @
62ebb119
...
...
@@ -38,6 +38,7 @@ typedef struct {
sal_Bool
bInhibitSplash
;
// should we show a splash screen
sal_Bool
bInhibitPagein
;
// should we run pagein ?
sal_Bool
bInhibitJavaLdx
;
// should we run javaldx ?
sal_Bool
bInhibitDemon
;
// we want to match the lifecycle of soffice.bin
sal_uInt32
nArgsEnv
;
// number of -env: style args
sal_uInt32
nArgsTotal
;
// number of -env: as well as -writer style args
...
...
desktop/unx/source/start.c
Dosyayı görüntüle @
62ebb119
...
...
@@ -882,9 +882,12 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
splash
=
NULL
;
bShortWait
=
sal_False
;
/* Since a client can't distinguish between a first-start and
a factory re-use, we return control to them here. */
daemon
(
1
/* don't chdir */
,
1
/* don't re-direct output */
);
if
(
!
args
->
bInhibitDemon
)
{
/* Since a client can't distinguish between a first-start and
a factory re-use, we return control to them here. */
daemon
(
1
/* don't chdir */
,
1
/* don't re-direct output */
);
}
}
#if OSL_DEBUG_LEVEL > 1
...
...
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