Fix fbsetroot segfault when DISPLAY unset
This commit is contained in:
parent
aad6845c91
commit
1ddd177d1a
2 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0rc2:
|
||||
*06/06/29:
|
||||
* Fix fbsetroot segfault when DISPLAY is unset (Mark)
|
||||
util/fbsetroot.cc
|
||||
*06/06/28:
|
||||
* Linear cycling wasn't affecting normal cycling order (Mark)
|
||||
WorkspaceCmd.cc
|
||||
|
|
|
@ -419,8 +419,12 @@ int main(int argc, char **argv) {
|
|||
display_name = argv[i];
|
||||
}
|
||||
}
|
||||
|
||||
fbsetroot app(argc, argv, display_name);
|
||||
|
||||
|
||||
try {
|
||||
fbsetroot app(argc, argv, display_name);
|
||||
} catch (std::string error_str) {
|
||||
cerr<<_FB_CONSOLETEXT(Common, Error, "Error", "Error message header")<<": "<<error_str<<endl;
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue