main.cxx (851abcd9) | main.cxx (ceb51a8e) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1014 unchanged lines hidden (view full) --- 1023 char *endptr = NULL; 1024 unsigned short uReportPort = (unsigned short)strtoul( strReportPort.c_str(), &endptr, 10 ); 1025 g_uReportPort = uReportPort ? uReportPort : 80; 1026 1027 return 0 != g_strReportServer.length(); 1028} 1029 1030#if 0 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1014 unchanged lines hidden (view full) --- 1023 char *endptr = NULL; 1024 unsigned short uReportPort = (unsigned short)strtoul( strReportPort.c_str(), &endptr, 10 ); 1025 g_uReportPort = uReportPort ? uReportPort : 80; 1026 1027 return 0 != g_strReportServer.length(); 1028} 1029 1030#if 0 |
1031// Use gconftool-2 to determine if gnome accessiblity is enabled | 1031// Use gconftool-2 to determine if gnome accessibility is enabled |
1032// unused 1033static bool get_accessibility_state() 1034{ 1035 bool bAccessible = false; 1036 FILE *fin = popen( "gconftool-2 -g /desktop/gnome/interface/accessibility", "r"); 1037 1038 if ( fin ) 1039 { --- 9 unchanged lines hidden (view full) --- 1049#endif 1050 1051int main( int argc, char** argv ) 1052{ 1053 freopen( "/dev/null", "w", stderr ); 1054 1055 setup_program_dir( argv[0] ); 1056 | 1032// unused 1033static bool get_accessibility_state() 1034{ 1035 bool bAccessible = false; 1036 FILE *fin = popen( "gconftool-2 -g /desktop/gnome/interface/accessibility", "r"); 1037 1038 if ( fin ) 1039 { --- 9 unchanged lines hidden (view full) --- 1049#endif 1050 1051int main( int argc, char** argv ) 1052{ 1053 freopen( "/dev/null", "w", stderr ); 1054 1055 setup_program_dir( argv[0] ); 1056 |
1057 // Don't start if accessiblity is enabled or report server is not given | 1057 // Don't start if accessibility is enabled or report server is not given |
1058 1059 if ( setup_version() ) 1060 { 1061 /*long pid =*/ setup_commandline_arguments( argc, argv, &g_signal ); 1062 1063 if ( g_bLoadReport ) 1064 { 1065 load_crash_data(); --- 53 unchanged lines hidden --- | 1058 1059 if ( setup_version() ) 1060 { 1061 /*long pid =*/ setup_commandline_arguments( argc, argv, &g_signal ); 1062 1063 if ( g_bLoadReport ) 1064 { 1065 load_crash_data(); --- 53 unchanged lines hidden --- |