diff --git a/modules/lib3270 b/modules/lib3270 index cade562..39c7b22 160000 --- a/modules/lib3270 +++ b/modules/lib3270 @@ -1 +1 @@ -Subproject commit cade562926337035d83a669156313e97152d594a +Subproject commit 39c7b224a1ad48db7a05a8f58c336c602df32f19 diff --git a/modules/libv3270 b/modules/libv3270 index 4cab09f..c9d5997 160000 --- a/modules/libv3270 +++ b/modules/libv3270 @@ -1 +1 @@ -Subproject commit 4cab09f65489893aa1b0815547485f79251d329a +Subproject commit c9d59970d3a3660a63d76517a5626e83bd5ba74e diff --git a/src/pw3270/main.c b/src/pw3270/main.c index 20b80d2..71d6d40 100644 --- a/src/pw3270/main.c +++ b/src/pw3270/main.c @@ -29,6 +29,8 @@ * */ +#include + #include #include #include "globals.h" @@ -352,7 +354,7 @@ static gboolean startup(GtkWidget *toplevel) int main(int argc, char *argv[]) { - static const gchar * session_name = PACKAGE_NAME; + static const gchar * session_name = NULL; static const gchar * host = NULL; int rc = 0; @@ -380,7 +382,7 @@ int main(int argc, char *argv[]) { "appname", 'a', 0, G_OPTION_ARG_STRING, &appname, N_( "Application name" ), PACKAGE_NAME }, { "datadir", 'd', 0, G_OPTION_ARG_CALLBACK, datadir, N_( "Path to application data files" ), NULL }, #endif // WIN32 - { "session", 's', 0, G_OPTION_ARG_STRING, &session_name, N_( "Session name" ), PACKAGE_NAME }, + { "session", 's', 0, G_OPTION_ARG_STRING, &session_name, N_( "Session name" ), NULL }, { "host", 'h', 0, G_OPTION_ARG_STRING, &host, N_( "Host to connect"), NULL }, { "colors", 'c', 0, G_OPTION_ARG_CALLBACK, optcolors, N_( "Set reported colors (8/16)" ), "16" }, { "systype", 't', 0, G_OPTION_ARG_STRING, &systype, N_( "Host system type" ), "S390" }, @@ -546,7 +548,15 @@ int main(int argc, char *argv[]) pw3270_load_plugins(pluginpath); toplevel = pw3270_new(host,systype,syscolors); - pw3270_set_session_name(toplevel,session_name); + + if(session_name) + { + pw3270_set_session_name(toplevel,session_name); + } + else + { + pw3270_set_session_name(toplevel,g_get_application_name()); + } if(toggleset) { -- libgit2 0.21.2