| 681 | } |
| 682 | |
| 683 | static void |
| 684 | print_system_information (GhbApplication *self) |
| 685 | { |
| 686 | g_printerr("%s\n", HB_PROJECT_TITLE); |
| 687 | g_autofree char *os_info = g_get_os_info(G_OS_INFO_KEY_PRETTY_NAME); |
| 688 | g_printerr("OS: %s\n", os_info); |
| 689 | #ifndef _WIN32 |
| 690 | g_autofree struct utsname *host_info = g_malloc0(sizeof(struct utsname)); |
| 691 | uname(host_info); |
| 692 | g_printerr("Kernel: %s %s (%s)\n", host_info->sysname, |
| 693 | host_info->release, host_info->machine); |
| 694 | #endif |
| 695 | g_autofree char *config_dir = ghb_get_user_config_dir(NULL); |
| 696 | g_printerr("CPU: %s x %d\n", hb_get_cpu_name(), hb_get_cpu_count()); |
| 697 | g_printerr("Install Dir: %s\n", ghb_application_get_app_dir(self)); |
| 698 | g_printerr("Config Dir: %s\n", config_dir); |
| 699 | g_printerr("_______________________________\n\n"); |
| 700 | } |
| 701 | |
| 702 | static void |
| 703 | ghb_application_constructed (GObject *object) |
no test coverage detected