diff -r 375540c2da38 -r a3e7ce26bc4b pidgin/pidgin.c --- a/pidgin/pidgin.c Wed Feb 26 04:40:40 2014 +0530 +++ b/pidgin/pidgin.c Wed Feb 26 11:14:00 2014 +0100 @@ -32,6 +32,8 @@ int main(int argc, char *argv[]) #endif { + const gchar *test_prgname; + #if !GLIB_CHECK_VERSION(2, 32, 0) /* GLib threading system is automaticaly initialized since 2.32. * For earlier versions, it have to be initialized before calling any @@ -40,7 +42,9 @@ g_thread_init(NULL); #endif - g_set_prgname("Pidgin"); + /* This is for UI testing purposes only, don't use it! */ + test_prgname = g_getenv("PIDGIN_TEST_PRGNAME"); + g_set_prgname(test_prgname ? test_prgname : "Pidgin"); g_set_application_name(PIDGIN_NAME); #ifdef _WIN32