108 |
" -v, --verbose print more information\n" |
" -v, --verbose print more information\n" |
109 |
" -h, --help display this help and exit\n" |
" -h, --help display this help and exit\n" |
110 |
" -V, --version output version information and exit\n" |
" -V, --version output version information and exit\n" |
111 |
" --display=DISPLAY use an alternative display instead of,\n" |
" -d, --display=DISPLAY use an alternative display instead of,\n" |
112 |
" $DISPLAY\n")); |
" $DISPLAY\n" |
113 |
|
" --sm-client-id use the specified session management id.\n")); |
114 |
exit (status); |
exit (status); |
115 |
} |
} |
116 |
|
|
137 |
case 'r': /* --file */ |
case 'r': /* --file */ |
138 |
rcfile = optarg; |
rcfile = optarg; |
139 |
break; |
break; |
140 |
|
case 130: /* --file */ |
141 |
|
sm_client_id = optarg; |
142 |
|
break; |
143 |
case 'V': |
case 'V': |
144 |
printf ("%s %s\n", PACKAGE, VERSION); |
printf ("%s %s\n", PACKAGE, VERSION); |
145 |
exit (0); |
exit (0); |
188 |
exit (1); |
exit (1); |
189 |
} |
} |
190 |
|
|
191 |
|
session_init (argv[0], sm_client_id); |
192 |
act.sa_handler = handleSignal; |
act.sa_handler = handleSignal; |
193 |
act.sa_flags = 0; |
act.sa_flags = 0; |
194 |
if (sigaction (SIGINT, &act, NULL)) |
if (sigaction (SIGINT, &act, NULL)) |