diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 74e15c74..0e51a254 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -92,9 +92,6 @@ GParted_Core::GParted_Core() flag = ped_partition_flag_next( flag ) ) flags .push_back( flag ) ; - // Display version and configuration info when starting for command line users. - std::cout << get_version_and_config_string() << std::endl; - find_supported_core(); //initialize file system list diff --git a/src/main.cc b/src/main.cc index 2c37ec99..91478db5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -20,6 +20,8 @@ #include #include #include +#include + int main( int argc, char *argv[] ) { @@ -35,6 +37,9 @@ int main( int argc, char *argv[] ) bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" ) ; textdomain( GETTEXT_PACKAGE ) ; + // Display version and configuration info when starting for command line users. + std::cout << GParted::GParted_Core::get_version_and_config_string() << std::endl; + //check UID if ( getuid() != 0 ) {