aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugin.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 5830e2c..1db6302 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -585,7 +585,10 @@ remote_debug_dialog (AnjutaPluginSdk *sp)
/* Make hitting enter in the entry do the window default action */
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
- gtk_entry_set_text (GTK_ENTRY (entry), sp->gdb_remote_command);
+ if (sp->gdb_remote_command)
+ gtk_entry_set_text (GTK_ENTRY (entry), sp->gdb_remote_command);
+ else
+ gtk_entry_set_text (GTK_ENTRY (entry), "/usr/local/bin/");
gtk_size_group_add_widget (control_group, entry);
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);
@@ -655,6 +658,8 @@ remote_run_dialog (AnjutaPluginSdk *sp, gchar *prev_cmd)
if (prev_cmd)
gtk_entry_set_text (GTK_ENTRY (entry), prev_cmd);
+ else
+ gtk_entry_set_text (GTK_ENTRY (entry), "/usr/local/bin/");
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);