We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd37c8f commit f3c84f9Copy full SHA for f3c84f9
main.cpp
@@ -28,16 +28,17 @@ void crash_handled(int fd){
28
using namespace std;
29
int main(int argc, char *argv[])
30
{
31
+ findyourself_init(argv[0]);
32
+ char exepath[PATH_MAX];
33
+ find_yourself(exepath, sizeof(exepath));
34
+
35
#ifdef ENABLE_CRASH_HANDLER
- EXECUTION_FILENAME = argv[0];
36
+ EXECUTION_FILENAME = exepath;
37
mkdir("/tmp/viper-gui/", S_IRWXU);
38
int fd = safe_open_wo_fd("/tmp/viper-gui/crash.dmp");
39
airbag_init_fd(fd,crash_handled,EXECUTION_FILENAME);
40
#endif
41
- findyourself_init(argv[0]);
- char exepath[PATH_MAX];
- find_yourself(exepath, sizeof(exepath));
42
43
QApplication a(argc, argv);
44
QCommandLineParser parser;
0 commit comments