desktop-shell: launch clients in their own process group.

Client applications shouldn't be in the same process group as
the display server.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
dev
Derek Foreman 8 years ago committed by Quentin Glidic
parent f0d39b2243
commit 091c801705
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 4
      clients/desktop-shell.c

@ -212,6 +212,10 @@ panel_launcher_activate(struct panel_launcher *widget)
return; return;
argv = widget->argv.data; argv = widget->argv.data;
if (setsid() == -1)
exit(EXIT_FAILURE);
if (execve(argv[0], argv, widget->envp.data) < 0) { if (execve(argv[0], argv, widget->envp.data) < 0) {
fprintf(stderr, "execl '%s' failed: %m\n", argv[0]); fprintf(stderr, "execl '%s' failed: %m\n", argv[0]);
exit(1); exit(1);

Loading…
Cancel
Save