mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +01:00
Idle fixes
- add new wglobaldefaultspathfordomain() to wings (replaces several hand-rolled individual implementations in utils/) - make all of 'em handle -h|--help, -v|--version - try making them not to nothing silently - change various ways of knowing thyselves to using __progname - generally try to make them feel similar (NOT right, similar -- right is a completely different matter)
This commit is contained in:
committed by
Carlos R. Mafra
parent
9dadfe7a68
commit
118a93808a
@@ -437,7 +437,7 @@ int main(int argc, char **argv)
|
||||
} else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {
|
||||
help:
|
||||
|
||||
printf("Syntax: %s [options]\n", argv[0]);
|
||||
printf("Usage: %s [options]\n", argv[0]);
|
||||
puts("Options:");
|
||||
puts(" -display <display> display that should be used");
|
||||
puts(" -m <number> change magnification factor (default 2)");
|
||||
@@ -454,14 +454,14 @@ int main(int argc, char **argv)
|
||||
|
||||
dpy = XOpenDisplay(display);
|
||||
if (!dpy) {
|
||||
puts("couldnt open display");
|
||||
puts("could not open display");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (vdisplay) {
|
||||
vdpy = XOpenDisplay(vdisplay);
|
||||
if (!vdpy) {
|
||||
puts("couldnt open display to be viewed");
|
||||
puts("could not open display to be viewed");
|
||||
exit(1);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user