File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14731,7 +14731,19 @@ static void handleAlertInLoop()
1473114731 {
1473214732 char caption[DEFAULT_STRING_LENGTH];
1473314733
14734- strcpy (caption, ALERT_CAPTION_PREFIX);
14734+ const char * caption_prefix = getenv (" NX_DIALOG_CAPTIONPREFIX" );
14735+
14736+ if (!caption_prefix) {
14737+ // Use the hard-coded 'NX -' as default.
14738+ strncpy (caption, ALERT_CAPTION_PREFIX, DEFAULT_STRING_LENGTH);
14739+ caption[DEFAULT_STRING_LENGTH-1 ] = ' \0 ' ;
14740+ }
14741+ else
14742+ {
14743+ // Use what gets provided via NX_DIALOG_CAPTIONPREFIX (used in X2Go)
14744+ strncpy (caption, caption_prefix, DEFAULT_STRING_LENGTH-1 );
14745+ caption[DEFAULT_STRING_LENGTH-1 ] = ' \0 ' ;
14746+ }
1473514747
1473614748 int length = strlen (sessionId);
1473714749
You can’t perform that action at this time.
0 commit comments