/* * HardInfo - Displays System Information * Copyright (C) 2003-2006 Leandro A. F. Pereira * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include gchar *path_data, *path_lib; int main(int argc, char **argv) { GError *error; gtk_init(&argc, &argv); if (!gbr_init(&error)) { path_data = g_build_filename(PREFIX, "share", "hardinfo", NULL); path_lib = g_build_filename(PREFIX, "lib", "hardinfo", NULL); g_warning("Cannot initialize BinReloc (%s); using \"%s\" as data dir and " \ "\"%s\" as lib dir.", error->message, path_data, path_lib); g_error_free(error); } else { gchar *tmp; tmp = gbr_find_data_dir(PREFIX); path_data = g_build_filename(tmp, "hardinfo", NULL); g_free(tmp); tmp = gbr_find_lib_dir(PREFIX); path_lib = g_build_filename(tmp, "hardinfo", NULL); g_free(tmp); } icon_cache_init(); stock_icons_init(); shell_init(); gtk_main(); return 0; }