mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 11:08:15 +02:00
fixed bug that prevented customized Applications menu items
with arguments from working
This commit is contained in:
parent
6b293e9204
commit
26e84bcd52
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