diff options
author | markt <markt> | 2007-07-24 12:14:17 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-24 12:14:17 (GMT) |
commit | 10001bb941c263fa4c138869b2d88fa78e409036 (patch) | |
tree | aacced7cbcfe0f23a883ae325f4ca07d9464900e /src/main.cc | |
parent | b065f9f284720fb69b1d019184cea27b807a4e37 (diff) | |
download | fluxbox-10001bb941c263fa4c138869b2d88fa78e409036.zip fluxbox-10001bb941c263fa4c138869b2d88fa78e409036.tar.bz2 |
fix ToggleDecor for fullscreen and decorationless windows, plus some other cleanup
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 643c6a4..2d1ff0d 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -321,9 +321,13 @@ int main(int argc, char **argv) { | |||
321 | FbTk::FbStringUtil::shutdown(); | 321 | FbTk::FbStringUtil::shutdown(); |
322 | 322 | ||
323 | if (restarting) { | 323 | if (restarting) { |
324 | const char *shell = getenv("SHELL"); | ||
325 | if (!shell) | ||
326 | shell = "/bin/sh"; | ||
327 | |||
324 | const char *arg = restart_argument.c_str(); | 328 | const char *arg = restart_argument.c_str(); |
325 | if (arg) { | 329 | if (arg) { |
326 | execlp(arg, arg, (char *) NULL); | 330 | execlp(shell, shell, "-c", arg, (char *) NULL); |
327 | perror(arg); | 331 | perror(arg); |
328 | } | 332 | } |
329 | 333 | ||