mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-19 20:30:41 +01:00
fixed bug that prevented customized Applications menu items
with arguments from working
This commit is contained in:
parent
a1c8b66164
commit
ed15fe4f52
1 changed files with 5 additions and 3 deletions
|
|
@ -296,15 +296,17 @@
|
|||
- (void) launch_client:(NSString *)filename
|
||||
{
|
||||
const char *command = [filename UTF8String];
|
||||
const char *argv[5];
|
||||
const char *argv[7];
|
||||
int child1, child2 = 0;
|
||||
int status;
|
||||
|
||||
argv[0] = "/usr/bin/login";
|
||||
argv[1] = "-fp";
|
||||
argv[2] = getlogin();
|
||||
argv[3] = command;
|
||||
argv[4] = NULL;
|
||||
argv[3] = "/bin/sh";
|
||||
argv[4] = "-c";
|
||||
argv[5] = command;
|
||||
argv[6] = NULL;
|
||||
|
||||
/* Do the fork-twice trick to avoid having to reap zombies */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue