• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeinit
 

tdeinit

  • tdeinit
tdelauncher_cmds.h
1/*
2 This file is part of the KDE libraries
3 Copyright (c) 1999 Waldo Bastian <bastian@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _TDELAUNCHER_CMDS_H_
21#define _TDELAUNCHER_CMDS_H_
22
23typedef struct
24{
25 long cmd;
26 long arg_length;
27} tdelauncher_header;
28
29/* Launcher commands: */
30
31#define LAUNCHER_EXEC 1
32/*
33 * LAUNCHER_EXEC
34 *
35 * Start a new process. Try using LAUNCHER_EXEC_NEW instead.
36 * There will be no app startup notification.
37 *
38 * long argc: number of arguments
39 * char *args: arguments, argument 0 is the program to start.
40 */
41
42
43#define LAUNCHER_SETENV 2
44/*
45 * LAUNCHER_SETENV
46 *
47 * Change environment of future processes launched via tdeinit.
48 * DON'T use this if you want to change environment only for one
49 * application you're going to start.
50 *
51 * char *env_name;
52 * char *env_value;
53 */
54
55#define LAUNCHER_DIED 3
56/*
57 * LAUNCHER_DIED
58 *
59 * Notification A child of tdeinit died.
60 *
61 * long pid;
62 * long exit_code;
63 */
64
65#define LAUNCHER_OK 4
66/*
67 * LAUNCHER_OK
68 *
69 * Notification Last process launched ok.
70 *
71 * long pid;
72 */
73
74#define LAUNCHER_ERROR 5
75/*
76 * LAUNCHER_ERROR
77 *
78 * Notification Last process could not be launched.
79 *
80 * char *error msg (utf8)
81 */
82
83#define LAUNCHER_SHELL 6
84/*
85 * LAUNCHER_SHELL
86 *
87 * Start a new process and use given environment.
88 * Starts app-startup notification.
89 *
90 * long argc: number of arguments
91 * char *args: arguments, argument 0 is the program to start.
92 * char *cwd: Working directory.
93 * long envc: number of environment vars
94 * char *envs: environment strings.
95 * int avoid_loops : avoid using the first path in $PATH where
96 * this process binary is found in order to avoid
97 * infinite loop by binary->tdeinit_wrapper link in $PATH
98 * char* startup_id: app startup notification id, "0" for none,
99 * "" ( empty string ) is the default
100 */
101
102#define LAUNCHER_TERMINATE_KDE 7
103
104/*
105 * LAUNCHER_TERMINATE_TDEINIT
106 *
107 * Suicide is painless
108 */
109#define LAUNCHER_TERMINATE_TDEINIT 8
110
111#define LAUNCHER_DEBUG_WAIT 9
112/*
113 * LAUNCHER_DEBUG_WAIT
114 *
115 * Next process started will do a sleep(1000000)
116 * before calling main()/kdemain()
117 *
118 * (Used for debugging io-slaves)
119 */
120
121#define LAUNCHER_EXT_EXEC 10
122/*
123 * LAUNCHER_EXT_EXEC
124 *
125 * Start a new process. The given environment variables will
126 * be added to its environment before starting it.
127 * Starts app-startup notification.
128 *
129 * long argc: number of arguments
130 * char *args: arguments, argument 0 is the program to start.
131 * long envc: number of environment vars
132 * char *envs: environment strings.
133 * int avoid_loops : avoid using the first path in $PATH where
134 * this process binary is found in order to avoid
135 * infinite loop by binary->tdeinit_wrapper link in $PATH
136 * char* startup_id: app startup notification id, "0" for none,
137 * "" ( empty string ) is the default
138 *
139 */
140
141
142#define LAUNCHER_KWRAPPER 11
143/*
144 * LAUNCHER_KWRAPPER
145 *
146 * Start a new process, use given environment, pass signals and output.
147 * Starts app-startup notification.
148 *
149 * long argc: number of arguments
150 * char *args: arguments, argument 0 is the program to start.
151 * char *cwd: Working directory.
152 * long envc: number of environment vars
153 * char *envs: environment strings.
154 * char *tty: tty to redirect stdout/stderr to.
155 * int avoid_loops : avoid using the first path in $PATH where
156 * this process binary is found in order to avoid
157 * infinite loop by binary->tdeinit_wrapper link in $PATH
158 * char* startup_id: app startup notification id, "0" for none,
159 * "" ( empty string ) is the default
160 */
161
162#define LAUNCHER_EXEC_NEW 12
163/*
164 * LAUNCHER_EXEC_NEW
165 *
166 * Start a new process. An improved version of LAUNCHER_EXEC.
167 * The given environment variables will be added
168 * to its environment before starting it.
169 * There will be no app startup notification.
170 *
171 * long argc: number of arguments
172 * char *args: arguments, argument 0 is the program to start.
173 * long envc: number of environment vars
174 * char *envs: environment strings.
175 * int avoid_loops : avoid using the first path in $PATH where
176 * this process binary is found in order to avoid
177 * infinite loop by binary->tdeinit_wrapper link in $PATH
178 */
179
180#define LAUNCHER_FD 42
181/*
182 * File descriptor to use for communication with tdeinit.
183 */
184
185#endif

tdeinit

Skip menu "tdeinit"
  • Main Page
  • File List
  • Related Pages

tdeinit

Skip menu "tdeinit"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeinit by doxygen 1.9.4
This website is maintained by Timothy Pearson.