Permalink
Browse files

[utils.js] Set stdout and stderr of spawned processes to /dev/null, s…

…o 'cinnamon --replace' does not linger after restart.
  • Loading branch information...
1 parent 47e9102 commit 893d14fa1f612d06e97c1ca96a8280773789e2b6 @autarkper autarkper committed Nov 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/misc/util.js
View
@@ -82,7 +82,7 @@ function trySpawn(argv)
{
try {
GLib.spawn_async(null, argv, null,
- GLib.SpawnFlags.SEARCH_PATH,
+ GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.STDOUT_TO_DEV_NULL | GLib.SpawnFlags.STDERR_TO_DEV_NULL,
null, null);
} catch (err) {
if (err.code == GLib.SpawnError.G_SPAWN_ERROR_NOENT) {

0 comments on commit 893d14f

Please sign in to comment.