36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_wmapp_cc,v 1.5 2004/08/11 22:48:26 naddy Exp $
|
|
--- src/wmapp.cc.orig Sun May 23 08:18:19 2004
|
|
+++ src/wmapp.cc Thu Aug 12 00:13:20 2004
|
|
@@ -923,11 +923,11 @@ void runRestart(const char *path, char *
|
|
if (args) {
|
|
execvp(path, args);
|
|
} else {
|
|
- execlp(path, path, 0);
|
|
+ execlp(path, path, (void *)NULL);
|
|
}
|
|
} else {
|
|
const char *c = configArg ? "-c" : NULL;
|
|
- execlp(ICEWMEXE, ICEWMEXE, "--restart", c, configArg, 0);
|
|
+ execlp(ICEWMEXE, ICEWMEXE, "--restart", c, configArg, (void *)NULL);
|
|
}
|
|
|
|
xapp->alert();
|
|
@@ -1452,6 +1452,8 @@ static void print_usage(const char *argv
|
|
int main(int argc, char **argv) {
|
|
YLocale locale;
|
|
|
|
+ const char *bg[] = { "icewmbg", 0 };
|
|
+
|
|
for (char ** arg = argv + 1; arg < argv + argc; ++arg) {
|
|
if (**arg == '-') {
|
|
#ifdef DEBUG
|
|
@@ -1492,6 +1494,8 @@ int main(int argc, char **argv) {
|
|
themeName = newstr(overrideTheme);
|
|
#endif
|
|
YWMApp app(&argc, &argv);
|
|
+
|
|
+ app.runProgram(bg[0], bg);
|
|
|
|
#ifdef CONFIG_GUIEVENTS
|
|
app.signalGuiEvent(geStartup);
|