clickable_url should be false whenever browser isn't set
This commit is contained in:
		
							parent
							
								
									bdec3ffc22
								
							
						
					
					
						commit
						f493b4c83e
					
				@ -1187,13 +1187,17 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    g_free(info->browser);
 | 
					    g_free(info->browser);
 | 
				
			||||||
 | 
					    info->browser = nullptr;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (auto s = get_config_string(config, "options", "browser")) {
 | 
					    if (auto s = get_config_string(config, "options", "browser")) {
 | 
				
			||||||
        info->browser = *s;
 | 
					        info->browser = *s;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        info->browser = g_strdup(g_getenv("BROWSER"));
 | 
					        info->browser = g_strdup(g_getenv("BROWSER"));
 | 
				
			||||||
        if (!info->browser) info->clickable_url = false;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!info->browser)
 | 
				
			||||||
 | 
					        info->clickable_url = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (auto s = get_config_string(config, "options", "font")) {
 | 
					    if (auto s = get_config_string(config, "options", "font")) {
 | 
				
			||||||
        vte_terminal_set_font_from_string(vte, *s);
 | 
					        vte_terminal_set_font_from_string(vte, *s);
 | 
				
			||||||
        g_free(*s);
 | 
					        g_free(*s);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user